Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kshvakov committed Nov 16, 2018
1 parent 60faf06 commit 5572ee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clickhouse_columnar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Test_ColumnarInsert(t *testing.T) {
if connect, err := clickhouse.OpenDirect("tcp://127.0.0.1:9000?debug=true"); assert.NoError(t, err) {
{
connect.Begin()
stmt, _ := connect.Prepare("DROP TABLE clickhouse_test_columnar_insert")
stmt, _ := connect.Prepare("DROP TABLE IF EXISTS clickhouse_test_columnar_insert")
stmt.Exec([]driver.Value{})
connect.Commit()
}
Expand Down
4 changes: 2 additions & 2 deletions clickhouse_direct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func Test_DirectInsert(t *testing.T) {
{
var (
tx, _ = connect.Begin()
stmt, _ = connect.Prepare("DROP TABLE clickhouse_test_direct_insert")
stmt, _ = connect.Prepare("DROP TABLE IF EXISTS clickhouse_test_direct_insert")
)
stmt.Exec([]driver.Value{})
tx.Commit()
Expand Down Expand Up @@ -204,7 +204,7 @@ func Test_DirectArrayT(t *testing.T) {
{
var (
tx, _ = connect.Begin()
stmt, _ = connect.Prepare("DROP TABLE clickhouse_test_direct_array")
stmt, _ = connect.Prepare("DROP TABLE IF EXISTS clickhouse_test_direct_array")
)
stmt.Exec([]driver.Value{})
tx.Commit()
Expand Down

0 comments on commit 5572ee6

Please sign in to comment.