]> granicus.if.org Git - php/commitdiff
Make it work for MySQL 6.x as well.
authorUlf Wendel <uw@php.net>
Thu, 3 Jan 2008 10:19:02 +0000 (10:19 +0000)
committerUlf Wendel <uw@php.net>
Thu, 3 Jan 2008 10:19:02 +0000 (10:19 +0000)
ext/mysqli/tests/mysqli_stmt_send_long_data.phpt

index 9e6cef0555e1ca6d6b104a2082ff92e22b6f47be..1a0ded0f63780aa84c4b5a3971394ba201d9844a 100644 (file)
@@ -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");