diff options
author | msvensson@neptunus.(none) <> | 2005-10-26 14:14:08 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2005-10-26 14:14:08 +0200 |
commit | ac895b0342a91d3be481f640755366c3f2dfc535 (patch) | |
tree | b4c731a7a92b71cfcaec4a243c0eafddb35bda40 /sql/sql_prepare.cc | |
parent | a167ddc6e7886e2b681511bde2c82ec5c2379290 (diff) | |
download | mariadb-git-ac895b0342a91d3be481f640755366c3f2dfc535.tar.gz |
Bug #12258 mysql_client_test failure on FC4
- Fix for gcc 4.0.1, use cast packet arg local variable
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 8a50d0bd50e..e0865f595cd 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -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 |