]> granicus.if.org Git - php/commitdiff
Hack around http://bugs.mysql.com/62320
authorUlf Wendel <uw@php.net>
Thu, 1 Sep 2011 11:27:14 +0000 (11:27 +0000)
committerUlf Wendel <uw@php.net>
Thu, 1 Sep 2011 11:27:14 +0000 (11:27 +0000)
ext/mysqli/tests/mysqli_last_insert_id.phpt

index 353cb7a8a19eb65aa246f6851000582e4d90007c..996c401f749b3f0fb62f3c623d953f9ea8683b64 100644 (file)
@@ -31,7 +31,7 @@ API vs. SQL LAST_INSERT_ID()
                        $host, $user, $db, $port, $socket);
 
        if (!$link->query("DROP TABLE IF EXISTS test") ||
-               !$link->query("CREATE TABLE test (id INT auto_increment, label varchar(10) not null, PRIMARY KEY (id))") ||
+               !$link->query("CREATE TABLE test (id INT auto_increment, label varchar(10) not null, PRIMARY KEY (id)) ENGINE=MyISAM") ||
                !$link->query("INSERT INTO test (id, label) VALUES (null, 'a')")) {
                printf("[002] [%d] %s\n", $link->errno, $link->error);
        }