summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-07 10:57:43 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-07 10:57:43 +0200
commit9569a0b8ca1344d81938bda715c785596ffa2946 (patch)
tree2685063f66258022708a8541751a6b812fbd11f8
parent972223c3428d241dd201c82c00e2d1807d2ecc68 (diff)
parentd7c7522be9ac94847d4f861c898c1e5969d05e0b (diff)
downloadphp-git-9569a0b8ca1344d81938bda715c785596ffa2946.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
-rw-r--r--ext/pdo_mysql/tests/bug_38546.phpt5
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
+)