List:Commits« Previous MessageNext Message »
From:ahristov Date:July 19 2007 2:25pm
Subject:PHP mysqlnd svn commit: r800 - trunk/tests/ext/mysqli
View as plain text  
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!

Thread
PHP mysqlnd svn commit: r800 - trunk/tests/ext/mysqliahristov19 Jul