Skip to content

Commit fee2f72

Browse files
committed
missed a truncate, tests pass now
1 parent be51821 commit fee2f72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,9 @@ func TestDateTime(t *testing.T) {
505505
db.mustExec("DROP TABLE IF EXISTS test")
506506
db.mustExec("CREATE TABLE test (value " + sqltype + ") CHARACTER SET utf8 COLLATE utf8_unicode_ci")
507507
for _, test := range tests {
508-
db.mustExec("INSERT INTO test VALUES (?)", test.in)
509508
for mode, q := range modes {
509+
db.mustExec("TRUNCATE test")
510+
db.mustExec("INSERT INTO test VALUES (?)", test.in)
510511
rows = db.mustQuery("SELECT value FROM test"+q.selectSuffix, q.args...)
511512
if rows.Next() {
512513
s.test(db, rows, test, sqltype, s.vartype, mode)

0 commit comments

Comments
 (0)