diff options
author | Ulf Wendel <uw@php.net> | 2008-01-08 13:16:00 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2008-01-08 13:16:00 +0000 |
commit | c7c7e7f318505da578d449ba6bd0be5b919ba0f6 (patch) | |
tree | 30bfa389ac101e6db5961035f6bd9eb0029dc101 /ext/mysqli | |
parent | 82e36686b3e23d43697dc1dbd7c5960933982440 (diff) | |
download | php-git-c7c7e7f318505da578d449ba6bd0be5b919ba0f6.tar.gz |
MySQL 6 compatibility fix.
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/tests/mysqli_stmt_send_long_data.phpt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt b/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt index 9e6cef0555..1a0ded0f63 100644 --- a/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt +++ b/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt @@ -49,6 +49,10 @@ require_once('skipifconnectfailure.inc'); mysqli_free_result($res); + if (isset($row['VARIABLE_VALUE']) && !isset($row['Value'])) + // MySQL 6.0 + $row['Value'] = $row['VARIABLE_VALUE']; + if (0 === ($max_allowed_packet = (int)$row['Value'])) printf("[011] Cannot determine max_allowed_packet size and/or bogus max_allowed_packet setting used.\n"); |