PHP mysqlnd svn commit: r800 - trunk/tests/ext/mysqli
Author: ahristov
Date: 2007-07-19 16:25:14 +0200 (Thu, 19 Jul 2007)
New Revision: 800
Modified:
trunk/tests/ext/mysqli/mysqli_insert_id.phpt
Log:
MySQL 4.1 doesn't have @@auto_increment_increment
Modified: trunk/tests/ext/mysqli/mysqli_insert_id.phpt
- trunk/tests/ext/mysqli/mysqli_insert_id.phpt 2007-07-19 14:21:12 UTC (rev 799)
+++ trunk/tests/ext/mysqli/mysqli_insert_id.phpt 2007-07-19 14:25:14 UTC (rev 800)
@@ -45,7 +45,7 @@
if (($last_id = mysqli_insert_id($link)) <= 0)
printf("[010] Expecting int/any >0, got %s/%s\n", gettype($last_id), $last_id);
- if (mysqli_query($link, "LOCK TABLE test WRITE")) {
+ if (mysqli_get_server_version($link) >= 50000 && mysqli_query($link, "LOCK TABLE test WRITE")) {
/* we need exclusive access for a moment */
/* let's hope nobody changes auto_increment_increment while this code executes */
do {
@@ -114,4 +114,4 @@ --EXPECTF--
Warning: mysqli_insert_id(): Couldn't fetch mysqli in %s on line %d
NULL
-done!
\ No newline at end of file
+done!
--
MySQL Code Commits Mailing List
For list archives:
http://lists.mysql.com/commits
To unsubscribe:
http://lists.mysql.com/commits?unsub=lists@pantek.com
Received on Thu Jul 19 10:25:24 2007
This archive was generated by hypermail 2.1.8
: Thu Aug 09 2007 - 19:09:08 EDT
|