Bug #12258 mysql_client_test failure on FC4

 - Fix for gcc 4.0.1, use cast packet arg local variable
parent a167ddc6
...@@ -1769,8 +1769,9 @@ static void reset_stmt_params(Prepared_statement *stmt) ...@@ -1769,8 +1769,9 @@ static void reset_stmt_params(Prepared_statement *stmt)
packet_length Query string length, including terminator character. 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); ulong stmt_id= uint4korr(packet);
/* /*
Query text for binary log, or empty string if the query is not put into Query text for binary log, or empty string if the query is not put into
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment