diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-07 10:26:37 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-07 10:57:09 +0200 |
commit | d7c7522be9ac94847d4f861c898c1e5969d05e0b (patch) | |
tree | 5f89a16f818dcfa0b026fb805523c7c99b9b0164 | |
parent | 83cdb89f8a6cbc656f2f95aeb6ce1c97691e197f (diff) | |
download | php-git-d7c7522be9ac94847d4f861c898c1e5969d05e0b.tar.gz |
Enable STRICT_TRANS_TABLES in new test
The part testing error cases relies on this.
-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 +) |