Skip to content

Commit

Permalink
consolidate duckdb insert stmts
Browse files Browse the repository at this point in the history
  • Loading branch information
joellubi committed Apr 10, 2024
1 parent 84bd098 commit e0dce08
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions go/adbc/drivermgr/wrapper_duckdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,7 @@ func (dm *DriverMgrDuckDBSuite) SetupSuite() {
_, err = stmt.ExecuteUpdate(dm.ctx)
dm.NoError(err)

dm.NoError(stmt.SetSqlQuery("INSERT INTO test_table (id, name) VALUES (1, 'test')"))
// Don't check nrows, duckdb currently does not support it
_, err = stmt.ExecuteUpdate(dm.ctx)
dm.NoError(err)

dm.NoError(stmt.SetSqlQuery("INSERT INTO test_table (id, name) VALUES (2, 'test')"))
// Don't check nrows, duckdb currently does not support it
_, err = stmt.ExecuteUpdate(dm.ctx)
dm.NoError(err)

dm.NoError(stmt.SetSqlQuery("INSERT INTO test_table (id, name) VALUES (3, 'tested')"))
dm.NoError(stmt.SetSqlQuery("INSERT INTO test_table (id, name) VALUES (1, 'test'), (2, 'test'), (3, 'test')"))
// Don't check nrows, duckdb currently does not support it
_, err = stmt.ExecuteUpdate(dm.ctx)
dm.NoError(err)
Expand Down

0 comments on commit e0dce08

Please sign in to comment.