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
60017fb2
Commit
60017fb2
authored
May 05, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#1622: Post-merge fixes
parent
77ee81b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
sql/sql_parse.cc
sql/sql_parse.cc
+0
-1
sql/sql_prepare.cc
sql/sql_prepare.cc
+8
-8
No files found.
sql/sql_parse.cc
View file @
60017fb2
...
@@ -1424,7 +1424,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
...
@@ -1424,7 +1424,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
}
}
case
COM_EXECUTE
:
case
COM_EXECUTE
:
{
{
thd
->
free_list
=
NULL
;
mysql_stmt_execute
(
thd
,
packet
,
packet_length
);
mysql_stmt_execute
(
thd
,
packet
,
packet_length
);
break
;
break
;
}
}
...
...
sql/sql_prepare.cc
View file @
60017fb2
...
@@ -1654,17 +1654,10 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
...
@@ -1654,17 +1654,10 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
thd
->
protocol
=
&
thd
->
protocol_prep
;
// Switch to binary protocol
thd
->
protocol
=
&
thd
->
protocol_prep
;
// Switch to binary protocol
execute_stmt
(
thd
,
stmt
);
execute_stmt
(
thd
,
stmt
);
thd
->
protocol
=
&
thd
->
protocol_simple
;
// Use normal protocol
thd
->
protocol
=
&
thd
->
protocol_simple
;
// Use normal protocol
//psergey-todo: move this into execute_stmt:
reset_stmt_params
(
stmt
);
/*
Free Items that were created during this execution of the PS by query
optimizer.
*/
free_items
(
thd
->
free_list
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
set_params_data_err:
set_params_data_err:
reset_stmt_params
(
stmt
);
//psergey-todo: check if this belongs here
reset_stmt_params
(
stmt
);
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"mysql_execute"
);
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"mysql_execute"
);
send_error
(
thd
);
send_error
(
thd
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
@@ -1709,10 +1702,12 @@ void mysql_sql_stmt_execute(THD *thd, LEX_STRING *stmt_name)
...
@@ -1709,10 +1702,12 @@ void mysql_sql_stmt_execute(THD *thd, LEX_STRING *stmt_name)
/*
/*
Execute prepared statement.
Execute prepared statement.
Caller must set parameter values and thd::protocol.
Caller must set parameter values and thd::protocol.
thd->free_list is assumed to be garbage.
*/
*/
static
void
execute_stmt
(
THD
*
thd
,
Prepared_statement
*
stmt
)
static
void
execute_stmt
(
THD
*
thd
,
Prepared_statement
*
stmt
)
{
{
DBUG_ENTER
(
"execute_stmt"
);
DBUG_ENTER
(
"execute_stmt"
);
thd
->
free_list
=
NULL
;
thd
->
stmt_backup
.
set_statement
(
thd
);
thd
->
stmt_backup
.
set_statement
(
thd
);
thd
->
set_statement
(
stmt
);
thd
->
set_statement
(
stmt
);
reset_stmt_for_execute
(
stmt
);
reset_stmt_for_execute
(
stmt
);
...
@@ -1724,6 +1719,11 @@ static void execute_stmt(THD *thd, Prepared_statement *stmt)
...
@@ -1724,6 +1719,11 @@ static void execute_stmt(THD *thd, Prepared_statement *stmt)
if
(
!
(
specialflag
&
SPECIAL_NO_PRIOR
))
if
(
!
(
specialflag
&
SPECIAL_NO_PRIOR
))
my_pthread_setprio
(
pthread_self
(),
WAIT_PRIOR
);
my_pthread_setprio
(
pthread_self
(),
WAIT_PRIOR
);
/*
Free Items that were created during this execution of the PS by query
optimizer.
*/
free_items
(
thd
->
free_list
);
cleanup_items
(
stmt
->
free_list
);
cleanup_items
(
stmt
->
free_list
);
reset_stmt_params
(
stmt
);
reset_stmt_params
(
stmt
);
close_thread_tables
(
thd
);
// to close derived tables
close_thread_tables
(
thd
);
// to close derived tables
...
...
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