]> granicus.if.org Git - php/commitdiff
Suppress test failure with MySQL 5.7
authorAndrey Hristov <andrey@php.net>
Wed, 18 Jun 2014 13:20:14 +0000 (16:20 +0300)
committerAndrey Hristov <andrey@php.net>
Wed, 18 Jun 2014 13:20:14 +0000 (16:20 +0300)
ext/mysqli/tests/table.inc

index aa1207af444bbfc0ac1d2212cafb9607eff1476a..cb089bb95061739413e99ae115a8bacdf17dd981 100644 (file)
@@ -12,7 +12,7 @@ if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
        exit(1);
 }
 
-if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE=' . $engine)) {
+if (!mysqli_query($link, 'CREATE TABLE test(id INT DEFAULT 0, label CHAR(1), PRIMARY KEY(id)) ENGINE=' . $engine)) {
        printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        exit(1);
 }