]> granicus.if.org Git - php/commitdiff
We need to turn off any strict mode here for this warning to show up
authorRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jul 2014 16:22:48 +0000 (12:22 -0400)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jul 2014 16:22:48 +0000 (12:22 -0400)
ext/mysqli/tests/066.phpt

index 91dfce5073e7cdd3f8e05af502e2b4eb82a4c936..a337e038c17a89489a260d04d6f6a8f8d2c75088 100644 (file)
@@ -12,6 +12,9 @@ require_once('skipifconnectfailure.inc');
        /*** test mysqli_connect 127.0.0.1 ***/
        $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
 
+       if (!mysqli_query($mysql, "SET sql_mode=''"))
+               printf("[002] Cannot set SQL-Mode, [%d] %s\n", mysqli_errno($mysql), mysqli_error($mysql));
+
        $mysql->query("DROP TABLE IF EXISTS test_warnings");
 
        $mysql->query("CREATE TABLE test_warnings (a int not null) ENGINE=myisam");