소스 검색

added allow_invalid_dates to dsn in time test (still broken)

Arne Hormann 12 년 전
부모
커밋
75147f2913
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      driver_test.go

+ 3 - 2
driver_test.go

@@ -509,9 +509,10 @@ func TestDateTime(t *testing.T) {
 	}
 
 	resultType = "string"
-	runTests(t, "TestDateTime", testTime)
 	oldDsn := dsn
-	dsn = dsn + "&parseTime=true"
+	dsn += "&sql_mode=ALLOW_INVALID_DATES"
+	runTests(t, "TestDateTime", testTime)
+	dsn += "&parseTime=true"
 	resultType = "time.Time"
 	runTests(t, "TestDateTime", testTime)
 	dsn = oldDsn