diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2014-07-30 12:23:46 -0400 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2014-07-30 12:23:46 -0400 |
commit | e7d921fd0b433b832542552b871f538d7b6d21f1 (patch) | |
tree | d6c780f5251c685339fa2fac4211e03e64118e6b /ext/mysqli | |
parent | 3c0adf2dcd0c99fa7a79f22a2d292a82cba23900 (diff) | |
parent | 8b9719d8b90c361fe56c3b6285676bc74fdf90c3 (diff) | |
download | php-git-e7d921fd0b433b832542552b871f538d7b6d21f1.tar.gz |
Merge commit '8b9719d'
* commit '8b9719d':
We need to turn off any strict mode here for this warning to show up
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/tests/066.phpt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mysqli/tests/066.phpt b/ext/mysqli/tests/066.phpt index 91dfce5073..a337e038c1 100644 --- a/ext/mysqli/tests/066.phpt +++ b/ext/mysqli/tests/066.phpt @@ -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"); |