Skip to content

Commit

Permalink
fix test table names
Browse files Browse the repository at this point in the history
  • Loading branch information
Joematpal authored and proullon committed May 31, 2023
1 parent 8ef62d0 commit daa2b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,13 +1120,13 @@ func TestInsertByteArrayODBC(t *testing.T) {

j, _ := json.Marshal(map[string]string{"a": "a"})

_, err = db.Exec("INSERT INTO test (json) values (?)", j)
_, err = db.Exec("INSERT INTO test_json (json) values (?)", j)
if err != nil {
t.Fatalf("sql.Exec: Error: %s\n", err)
}

var s []byte
err = db.QueryRow("SELECT json FROM test limit 1").Scan(&s)
err = db.QueryRow("SELECT json FROM test_json limit 1").Scan(&s)
if err != nil {
t.Fatalf("sql.Select: Error: %s\n", err)
}
Expand Down

0 comments on commit daa2b47

Please sign in to comment.