We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1caf647 commit 4e994dfCopy full SHA for 4e994df
driver_test.go
@@ -741,6 +741,9 @@ func TestLoadData(t *testing.T) {
741
}
742
743
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"
747
runTests(t, "TestStrict", func(dbt *DBTest) {
748
dbt.mustExec("CREATE TABLE test (a TINYINT NOT NULL, b CHAR(4))")
749
@@ -803,6 +806,7 @@ func TestStrict(t *testing.T) {
803
806
804
807
805
808
})
809
+ dsn = oldDsn
810
811
812
// Special cases
0 commit comments