From d7c7522be9ac94847d4f861c898c1e5969d05e0b Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 7 Jun 2019 10:26:37 +0200 Subject: [PATCH] Enable STRICT_TRANS_TABLES in new test The part testing error cases relies on this. --- ext/pdo_mysql/tests/bug_38546.phpt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +) -- 2.49.0