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 c9b689a commit 75147f2Copy full SHA for 75147f2
driver_test.go
@@ -509,9 +509,10 @@ func TestDateTime(t *testing.T) {
509
}
510
511
resultType = "string"
512
- runTests(t, "TestDateTime", testTime)
513
oldDsn := dsn
514
- dsn = dsn + "&parseTime=true"
+ dsn += "&sql_mode=ALLOW_INVALID_DATES"
+ runTests(t, "TestDateTime", testTime)
515
+ dsn += "&parseTime=true"
516
resultType = "time.Time"
517
runTests(t, "TestDateTime", testTime)
518
dsn = oldDsn
0 commit comments