mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Make it work for MySQL 6.x as well.
This commit is contained in:
parent
aa337c4bfc
commit
60be62b781
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user