Skip to content

Commit 4e994df

Browse files
committed
don't fail on strict hosts
1 parent 1caf647 commit 4e994df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,9 @@ func TestLoadData(t *testing.T) {
741741
}
742742

743743
func TestStrict(t *testing.T) {
744+
oldDsn := dsn
745+
// to get rid of stricter modes - we want to test for warnings, not errors
746+
dsn += "&sql_mode=ALLOW_INVALID_DATES"
744747
runTests(t, "TestStrict", func(dbt *DBTest) {
745748
dbt.mustExec("CREATE TABLE test (a TINYINT NOT NULL, b CHAR(4))")
746749

@@ -803,6 +806,7 @@ func TestStrict(t *testing.T) {
803806
}
804807
}
805808
})
809+
dsn = oldDsn
806810
}
807811

808812
// Special cases

0 commit comments

Comments
 (0)