com php-src: Enable STRICT_TRANS_TABLES in new test : ext/pdo_mysql/tests/bug_38546.phpt
| From: | Nikita Popov | Date: | Fri, 07 Jun 2019 08:57:09 +0000 |
| Subject: | com php-src: Enable STRICT_TRANS_TABLES in new test : ext/pdo_mysql/tests/bug_38546.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106611@lists.php.net to get a copy of this message | ||
Commit: d7c7522be9ac94847d4f861c898c1e5969d05e0b
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 7 Jun 2019 10:26:37 +0200
Parents: 83cdb89f8a6cbc656f2f95aeb6ce1c97691e197f
Branches: PHP-7.2 PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d7c7522be9ac94847d4f861c898c1e5969d05e0b
Log:
Enable STRICT_TRANS_TABLES in new test
The part testing error cases relies on this..
Changed paths:
M ext/pdo_mysql/tests/bug_38546.phpt
Diff:
diff --git a/ext/pdo_mysql/tests/bug_38546.phpt b/ext/pdo_mysql/tests/bug_38546.phpt
index 962a404..0d7b44d 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
+)