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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
24c5af67
Commit
24c5af67
authored
Oct 14, 2020
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the constants names
parent
ff8ffef3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
sql/sql_class.h
sql/sql_class.h
+2
-2
sql/sql_parse.cc
sql/sql_parse.cc
+10
-7
sql/sql_prepare.cc
sql/sql_prepare.cc
+2
-2
No files found.
sql/sql_class.h
View file @
24c5af67
...
@@ -5782,11 +5782,11 @@ class select_dumpvar :public select_result_interceptor {
...
@@ -5782,11 +5782,11 @@ class select_dumpvar :public select_result_interceptor {
/**
/**
SP Bulk execution safe
SP Bulk execution safe
*/
*/
#define CF_
SP_BULK
_SAFE (1U << 20)
#define CF_
PS_ARRAY_BINDING
_SAFE (1U << 20)
/**
/**
SP Bulk execution optimized
SP Bulk execution optimized
*/
*/
#define CF_
SP_BULK
_OPTIMIZED (1U << 21)
#define CF_
PS_ARRAY_BINDING
_OPTIMIZED (1U << 21)
/* Bits in server_command_flags */
/* Bits in server_command_flags */
...
...
sql/sql_parse.cc
View file @
24c5af67
...
@@ -577,19 +577,21 @@ void init_update_queries(void)
...
@@ -577,19 +577,21 @@ void init_update_queries(void)
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
CF_CAN_BE_EXPLAINED
|
CF_CAN_BE_EXPLAINED
|
CF_UPDATES_DATA
|
CF_SP_BULK_SAFE
;
CF_UPDATES_DATA
|
CF_PS_ARRAY_BINDING_SAFE
;
sql_command_flags
[
SQLCOM_UPDATE_MULTI
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
sql_command_flags
[
SQLCOM_UPDATE_MULTI
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
CF_CAN_BE_EXPLAINED
|
CF_CAN_BE_EXPLAINED
|
CF_UPDATES_DATA
|
CF_SP_BULK_SAFE
;
CF_UPDATES_DATA
|
CF_PS_ARRAY_BINDING_SAFE
;
sql_command_flags
[
SQLCOM_INSERT
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
sql_command_flags
[
SQLCOM_INSERT
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
CF_CAN_BE_EXPLAINED
|
CF_CAN_BE_EXPLAINED
|
CF_INSERTS_DATA
|
CF_INSERTS_DATA
|
CF_
SP_BULK
_SAFE
|
CF_
PS_ARRAY_BINDING
_SAFE
|
CF_
SP_BULK
_OPTIMIZED
;
CF_
PS_ARRAY_BINDING
_OPTIMIZED
;
sql_command_flags
[
SQLCOM_INSERT_SELECT
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
sql_command_flags
[
SQLCOM_INSERT_SELECT
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
...
@@ -599,7 +601,7 @@ void init_update_queries(void)
...
@@ -599,7 +601,7 @@ void init_update_queries(void)
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
CF_CAN_BE_EXPLAINED
|
CF_CAN_BE_EXPLAINED
|
CF_
SP_BULK
_SAFE
;
CF_
PS_ARRAY_BINDING
_SAFE
;
sql_command_flags
[
SQLCOM_DELETE_MULTI
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
sql_command_flags
[
SQLCOM_DELETE_MULTI
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
...
@@ -608,8 +610,9 @@ void init_update_queries(void)
...
@@ -608,8 +610,9 @@ void init_update_queries(void)
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
CF_CAN_BE_EXPLAINED
|
CF_CAN_BE_EXPLAINED
|
CF_INSERTS_DATA
|
CF_SP_BULK_SAFE
|
CF_INSERTS_DATA
|
CF_SP_BULK_OPTIMIZED
;
CF_PS_ARRAY_BINDING_SAFE
|
CF_PS_ARRAY_BINDING_OPTIMIZED
;
sql_command_flags
[
SQLCOM_REPLACE_SELECT
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
sql_command_flags
[
SQLCOM_REPLACE_SELECT
]
=
CF_CHANGES_DATA
|
CF_REEXECUTION_FRAGILE
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_CAN_GENERATE_ROW_EVENTS
|
CF_OPTIMIZER_TRACE
|
CF_OPTIMIZER_TRACE
|
...
...
sql/sql_prepare.cc
View file @
24c5af67
...
@@ -4390,7 +4390,7 @@ Prepared_statement::execute_bulk_loop(String *expanded_query,
...
@@ -4390,7 +4390,7 @@ Prepared_statement::execute_bulk_loop(String *expanded_query,
return
TRUE
;
return
TRUE
;
}
}
if
(
!
(
sql_command_flags
[
lex
->
sql_command
]
&
CF_
SP_BULK
_SAFE
))
if
(
!
(
sql_command_flags
[
lex
->
sql_command
]
&
CF_
PS_ARRAY_BINDING
_SAFE
))
{
{
DBUG_PRINT
(
"error"
,
(
"Command is not supported in bulk execution."
));
DBUG_PRINT
(
"error"
,
(
"Command is not supported in bulk execution."
));
my_error
(
ER_UNSUPPORTED_PS
,
MYF
(
0
));
my_error
(
ER_UNSUPPORTED_PS
,
MYF
(
0
));
...
@@ -4432,7 +4432,7 @@ Prepared_statement::execute_bulk_loop(String *expanded_query,
...
@@ -4432,7 +4432,7 @@ Prepared_statement::execute_bulk_loop(String *expanded_query,
Here we set parameters for not optimized commands,
Here we set parameters for not optimized commands,
optimized commands do it inside thier internal loop.
optimized commands do it inside thier internal loop.
*/
*/
if
(
!
(
sql_command_flags
[
lex
->
sql_command
]
&
CF_
SP_BULK
_OPTIMIZED
))
if
(
!
(
sql_command_flags
[
lex
->
sql_command
]
&
CF_
PS_ARRAY_BINDING
_OPTIMIZED
))
{
{
if
(
set_bulk_parameters
(
TRUE
))
if
(
set_bulk_parameters
(
TRUE
))
{
{
...
...
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