summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2008-01-03 10:19:02 +0000
committerUlf Wendel <uw@php.net>2008-01-03 10:19:02 +0000
commit60be62b78183f6bb54c340d9effeef89333f6629 (patch)
tree146b22c37f1665e1f6bd02de25535c43332ade10
parentaa337c4bfc0a129219d873b0494554c41bfea9a4 (diff)
downloadphp-git-60be62b78183f6bb54c340d9effeef89333f6629.tar.gz
Make it work for MySQL 6.x as well.
-rw-r--r--ext/mysqli/tests/mysqli_stmt_send_long_data.phpt4
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");