Skip to content

Commit 75147f2

Browse files
committed
added allow_invalid_dates to dsn in time test (still broken)
1 parent c9b689a commit 75147f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

driver_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,10 @@ func TestDateTime(t *testing.T) {
509509
}
510510

511511
resultType = "string"
512-
runTests(t, "TestDateTime", testTime)
513512
oldDsn := dsn
514-
dsn = dsn + "&parseTime=true"
513+
dsn += "&sql_mode=ALLOW_INVALID_DATES"
514+
runTests(t, "TestDateTime", testTime)
515+
dsn += "&parseTime=true"
515516
resultType = "time.Time"
516517
runTests(t, "TestDateTime", testTime)
517518
dsn = oldDsn

0 commit comments

Comments
 (0)