]> granicus.if.org Git - php/commitdiff
Enable STRICT_TRANS_TABLES in new test
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 7 Jun 2019 08:26:37 +0000 (10:26 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 7 Jun 2019 08:57:09 +0000 (10:57 +0200)
The part testing error cases relies on this.

ext/pdo_mysql/tests/bug_38546.phpt

index 962a404fc0be588ef2b17015184568464f095709..0d7b44d1dc7a30929a6f9d3ec61befd987d8061a 100644 (file)
@@ -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
+)