mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 19:25:32 +02:00
Bug #12258 mysql_client_test failure on FC4
- Fix for gcc 4.0.1, use cast packet arg local variable sql/sql_prepare.cc: Use local variable packet that contains an uchar pointer to packet_arg
This commit is contained in:
parent
c9978d8bcb
commit
39e33ddd70
1 changed files with 2 additions and 1 deletions
|
|
@ -1769,8 +1769,9 @@ static void reset_stmt_params(Prepared_statement *stmt)
|
|||
packet_length Query string length, including terminator character.
|
||||
*/
|
||||
|
||||
void mysql_stmt_execute(THD *thd, char *packet, 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
|
||||
ulong stmt_id= uint4korr(packet);
|
||||
/*
|
||||
Query text for binary log, or empty string if the query is not put into
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue