cvs: php-src /ext/mysqli/tests mysqli_stmt_send_long_data.phpt
| From: | Ulf Wendel | Date: | Thu, 03 Jan 2008 10:19:03 +0000 |
| Subject: | cvs: php-src /ext/mysqli/tests mysqli_stmt_send_long_data.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47689@lists.php.net to get a copy of this message | ||
uw Thu Jan 3 10:19:03 2008 UTC
Modified files:
/php-src/ext/mysqli/tests mysqli_stmt_send_long_data.phpt
Log:
Make it work for MySQL 6.x as well.
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt
diff -u php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.3
php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.4
--- php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.3 Wed Oct 10 10:51:34 2007
+++ php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt Thu Jan 3 10:19:02 2008
@@ -49,6 +49,10 @@
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");