diff options
-rw-r--r-- | ext/pdo_mysql/tests/bug_38546.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo_mysql/tests/bug_38546.phpt b/ext/pdo_mysql/tests/bug_38546.phpt index 962a404fc0..0d7b44d1dc 100644 --- a/ext/pdo_mysql/tests/bug_38546.phpt +++ b/ext/pdo_mysql/tests/bug_38546.phpt @@ -15,6 +15,9 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); +// To test error cases. +$db->exec("SET sql_mode='STRICT_TRANS_TABLES'"); + $db->exec("DROP TABLE IF EXISTS test"); $query = "CREATE TABLE test( @@ -279,4 +282,4 @@ Array [2] => 0 [some_int] => 5 [3] => 5 -)
\ No newline at end of file +) |