mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint configure.in: Auto merged mysql-test/mysql-test-run.pl: Auto merged mysql-test/r/range.result: Auto merged mysql-test/t/range.test: Auto merged mysys/default.c: Auto merged scripts/mysqld_multi.sh: Auto merged sql/field.h: Auto merged sql/item_timefunc.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/slave.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_prepare.cc: Auto merged
This commit is contained in:
@@ -2240,13 +2240,13 @@ static void reset_stmt_params(Prepared_statement *stmt)
|
|||||||
|
|
||||||
void mysql_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
|
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 stmt_id= uint4korr(packet);
|
||||||
ulong flags= (ulong) ((uchar) packet[4]);
|
ulong flags= (ulong) ((uchar) packet[4]);
|
||||||
/* Query text for binary, general or slow log, if any of them is open */
|
/* Query text for binary, general or slow log, if any of them is open */
|
||||||
String expanded_query;
|
String expanded_query;
|
||||||
#ifndef EMBEDDED_LIBRARY
|
#ifndef EMBEDDED_LIBRARY
|
||||||
uchar *packet_end= (uchar *) packet + packet_length - 1;
|
uchar *packet_end= packet + packet_length - 1;
|
||||||
#endif
|
#endif
|
||||||
Prepared_statement *stmt;
|
Prepared_statement *stmt;
|
||||||
bool error;
|
bool error;
|
||||||
@@ -2269,9 +2269,9 @@ void mysql_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
|
|||||||
#ifndef EMBEDDED_LIBRARY
|
#ifndef EMBEDDED_LIBRARY
|
||||||
if (stmt->param_count)
|
if (stmt->param_count)
|
||||||
{
|
{
|
||||||
uchar *null_array= (uchar *) packet;
|
uchar *null_array= packet;
|
||||||
if (setup_conversion_functions(stmt, (uchar **) &packet, packet_end) ||
|
if (setup_conversion_functions(stmt, &packet, packet_end) ||
|
||||||
stmt->set_params(stmt, null_array, (uchar *) packet, packet_end,
|
stmt->set_params(stmt, null_array, packet, packet_end,
|
||||||
&expanded_query))
|
&expanded_query))
|
||||||
goto set_params_data_err;
|
goto set_params_data_err;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user