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
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,
}
case
COM_EXECUTE
:
{
thd
->
free_list
=
NULL
;
mysql_stmt_execute
(
thd
,
packet
,
packet_length
);
break
;
}
...
...
sql/sql_prepare.cc
View file @
60017fb2
...
...
@@ -1654,17 +1654,10 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
thd
->
protocol
=
&
thd
->
protocol_prep
;
// Switch to binary protocol
execute_stmt
(
thd
,
stmt
);
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
;
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"
);
send_error
(
thd
);
DBUG_VOID_RETURN
;
...
...
@@ -1709,10 +1702,12 @@ void mysql_sql_stmt_execute(THD *thd, LEX_STRING *stmt_name)
/*
Execute prepared statement.
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
)
{
DBUG_ENTER
(
"execute_stmt"
);
thd
->
free_list
=
NULL
;
thd
->
stmt_backup
.
set_statement
(
thd
);
thd
->
set_statement
(
stmt
);
reset_stmt_for_execute
(
stmt
);
...
...
@@ -1724,6 +1719,11 @@ static void execute_stmt(THD *thd, Prepared_statement *stmt)
if
(
!
(
specialflag
&
SPECIAL_NO_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
);
reset_stmt_params
(
stmt
);
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