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
69510b70
Commit
69510b70
authored
Feb 06, 2007
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.mysql.com:/home/msvensson/mysql/mysql-4.1-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
parents
d018030b
256cb08b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/sql_prepare.cc
sql/sql_prepare.cc
+5
-5
No files found.
sql/sql_prepare.cc
View file @
69510b70
...
...
@@ -2202,13 +2202,13 @@ static void reset_stmt_params(Prepared_statement *stmt)
void
mysql_stmt_execute
(
THD
*
thd
,
char
*
packet_arg
,
uint
packet_length
)
{
uchar
*
packet
=
(
uchar
*
)
packet_arg
;
// GCC 4.0.1 workaround
uchar
*
packet
=
(
uchar
*
)
packet_arg
;
// gcc 4.0 stgrict-aliasing
ulong
stmt_id
=
uint4korr
(
packet
);
ulong
flags
=
(
ulong
)
((
uchar
)
packet
[
4
]);
/* Query text for binary, general or slow log, if any of them is open */
String
expanded_query
;
#ifndef EMBEDDED_LIBRARY
uchar
*
packet_end
=
(
uchar
*
)
packet
+
packet_length
-
1
;
uchar
*
packet_end
=
packet
+
packet_length
-
1
;
#endif
Prepared_statement
*
stmt
;
bool
error
;
...
...
@@ -2231,9 +2231,9 @@ void mysql_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
#ifndef EMBEDDED_LIBRARY
if
(
stmt
->
param_count
)
{
uchar
*
null_array
=
(
uchar
*
)
packet
;
if
(
setup_conversion_functions
(
stmt
,
(
uchar
**
)
&
packet
,
packet_end
)
||
stmt
->
set_params
(
stmt
,
null_array
,
(
uchar
*
)
packet
,
packet_end
,
uchar
*
null_array
=
packet
;
if
(
setup_conversion_functions
(
stmt
,
&
packet
,
packet_end
)
||
stmt
->
set_params
(
stmt
,
null_array
,
packet
,
packet_end
,
&
expanded_query
))
goto
set_params_data_err
;
}
...
...
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