Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fcec0858
Commit
fcec0858
authored
Nov 29, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/SQLCOM_MULTI_UPDATE/SQLCOM_UPDATE_MULTI/ to be in line with SQLCOM_DELETE_MULTI
parent
8238a007
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
sql/sql_lex.h
sql/sql_lex.h
+3
-3
sql/sql_parse.cc
sql/sql_parse.cc
+4
-4
No files found.
sql/sql_lex.h
View file @
fcec0858
...
@@ -50,9 +50,9 @@ enum enum_sql_command {
...
@@ -50,9 +50,9 @@ enum enum_sql_command {
SQLCOM_SHOW_CREATE_DB
,
SQLCOM_SHOW_CREATE_DB
,
SQLCOM_LOAD
,
SQLCOM_SET_OPTION
,
SQLCOM_LOCK_TABLES
,
SQLCOM_UNLOCK_TABLES
,
SQLCOM_LOAD
,
SQLCOM_SET_OPTION
,
SQLCOM_LOCK_TABLES
,
SQLCOM_UNLOCK_TABLES
,
SQLCOM_GRANT
,
SQLCOM_GRANT
,
SQLCOM_CHANGE_DB
,
SQLCOM_CREATE_DB
,
SQLCOM_DROP_DB
,
SQLCOM_ALTER_DB
,
SQLCOM_CHANGE_DB
,
SQLCOM_CREATE_DB
,
SQLCOM_DROP_DB
,
SQLCOM_ALTER_DB
,
SQLCOM_REPAIR
,
SQLCOM_REPLACE
,
SQLCOM_REPLACE_SELECT
,
SQLCOM_REPAIR
,
SQLCOM_REPLACE
,
SQLCOM_REPLACE_SELECT
,
SQLCOM_CREATE_FUNCTION
,
SQLCOM_DROP_FUNCTION
,
SQLCOM_CREATE_FUNCTION
,
SQLCOM_DROP_FUNCTION
,
SQLCOM_REVOKE
,
SQLCOM_OPTIMIZE
,
SQLCOM_CHECK
,
SQLCOM_REVOKE
,
SQLCOM_OPTIMIZE
,
SQLCOM_CHECK
,
SQLCOM_FLUSH
,
SQLCOM_KILL
,
SQLCOM_ANALYZE
,
SQLCOM_FLUSH
,
SQLCOM_KILL
,
SQLCOM_ANALYZE
,
...
@@ -62,7 +62,7 @@ enum enum_sql_command {
...
@@ -62,7 +62,7 @@ enum enum_sql_command {
SQLCOM_RESET
,
SQLCOM_PURGE
,
SQLCOM_SHOW_BINLOGS
,
SQLCOM_RESET
,
SQLCOM_PURGE
,
SQLCOM_SHOW_BINLOGS
,
SQLCOM_SHOW_OPEN_TABLES
,
SQLCOM_LOAD_MASTER_DATA
,
SQLCOM_SHOW_OPEN_TABLES
,
SQLCOM_LOAD_MASTER_DATA
,
SQLCOM_HA_OPEN
,
SQLCOM_HA_CLOSE
,
SQLCOM_HA_READ
,
SQLCOM_HA_OPEN
,
SQLCOM_HA_CLOSE
,
SQLCOM_HA_READ
,
SQLCOM_SHOW_SLAVE_HOSTS
,
SQLCOM_DELETE_MULTI
,
SQLCOM_
MULTI_UPDATE
,
SQLCOM_SHOW_SLAVE_HOSTS
,
SQLCOM_DELETE_MULTI
,
SQLCOM_
UPDATE_MULTI
,
SQLCOM_SHOW_BINLOG_EVENTS
,
SQLCOM_SHOW_NEW_MASTER
,
SQLCOM_DO
,
SQLCOM_SHOW_BINLOG_EVENTS
,
SQLCOM_SHOW_NEW_MASTER
,
SQLCOM_DO
,
SQLCOM_SHOW_WARNS
,
SQLCOM_EMPTY_QUERY
,
SQLCOM_SHOW_ERRORS
,
SQLCOM_SHOW_WARNS
,
SQLCOM_EMPTY_QUERY
,
SQLCOM_SHOW_ERRORS
,
SQLCOM_SHOW_COLUMN_TYPES
,
SQLCOM_SHOW_TABLE_TYPES
,
SQLCOM_SHOW_PRIVILEGES
,
SQLCOM_SHOW_COLUMN_TYPES
,
SQLCOM_SHOW_TABLE_TYPES
,
SQLCOM_SHOW_PRIVILEGES
,
...
...
sql/sql_parse.cc
View file @
fcec0858
...
@@ -362,7 +362,7 @@ void init_update_queries(void)
...
@@ -362,7 +362,7 @@ void init_update_queries(void)
uc_update_queries
[
SQLCOM_RESTORE_TABLE
]
=
1
;
uc_update_queries
[
SQLCOM_RESTORE_TABLE
]
=
1
;
uc_update_queries
[
SQLCOM_DELETE_MULTI
]
=
1
;
uc_update_queries
[
SQLCOM_DELETE_MULTI
]
=
1
;
uc_update_queries
[
SQLCOM_DROP_INDEX
]
=
1
;
uc_update_queries
[
SQLCOM_DROP_INDEX
]
=
1
;
uc_update_queries
[
SQLCOM_
MULTI_UPDATE
]
=
1
;
uc_update_queries
[
SQLCOM_
UPDATE_MULTI
]
=
1
;
}
}
...
@@ -1911,7 +1911,7 @@ mysql_execute_command(THD *thd)
...
@@ -1911,7 +1911,7 @@ mysql_execute_command(THD *thd)
TABLE_LIST
*
auxi
;
TABLE_LIST
*
auxi
;
const
char
*
msg
=
0
;
const
char
*
msg
=
0
;
lex
->
sql_command
=
SQLCOM_
MULTI_UPDATE
;
lex
->
sql_command
=
SQLCOM_
UPDATE_MULTI
;
for
(
auxi
=
(
TABLE_LIST
*
)
tables
,
table_count
=
0
;
auxi
;
auxi
=
auxi
->
next
)
for
(
auxi
=
(
TABLE_LIST
*
)
tables
,
table_count
=
0
;
auxi
;
auxi
=
auxi
->
next
)
table_count
++
;
table_count
++
;
...
@@ -2056,11 +2056,11 @@ mysql_execute_command(THD *thd)
...
@@ -2056,11 +2056,11 @@ mysql_execute_command(THD *thd)
/* sql_yacc guarantees that tables and aux_tables are not zero */
/* sql_yacc guarantees that tables and aux_tables are not zero */
if
(
check_db_used
(
thd
,
tables
)
||
check_db_used
(
thd
,
aux_tables
)
||
if
(
check_db_used
(
thd
,
tables
)
||
check_db_used
(
thd
,
aux_tables
)
||
check_table_access
(
thd
,
SELECT_ACL
,
tables
)
||
check_table_access
(
thd
,
SELECT_ACL
,
tables
)
||
check_table_access
(
thd
,
DELETE_ACL
,
aux_tables
))
check_table_access
(
thd
,
DELETE_ACL
,
aux_tables
))
goto
error
;
goto
error
;
if
((
thd
->
options
&
OPTION_SAFE_UPDATES
)
&&
!
select_lex
->
where
)
if
((
thd
->
options
&
OPTION_SAFE_UPDATES
)
&&
!
select_lex
->
where
)
{
{
send_error
(
thd
,
ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE
);
send_error
(
thd
,
ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE
);
goto
error
;
goto
error
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment