Skip to content

Commit d7c7522

Browse files
committed
Enable STRICT_TRANS_TABLES in new test
The part testing error cases relies on this.
1 parent 83cdb89 commit d7c7522

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/pdo_mysql/tests/bug_38546.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
1515

1616
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
1717

18+
// To test error cases.
19+
$db->exec("SET sql_mode='STRICT_TRANS_TABLES'");
20+
1821
$db->exec("DROP TABLE IF EXISTS test");
1922

2023
$query = "CREATE TABLE test(
@@ -279,4 +282,4 @@ Array
279282
[2] => 0
280283
[some_int] => 5
281284
[3] => 5
282-
)
285+
)

0 commit comments

Comments
 (0)