aboutsummaryrefslogtreecommitdiff
path: root/pgruntime/connector.go
diff options
context:
space:
mode:
Diffstat (limited to 'pgruntime/connector.go')
-rw-r--r--pgruntime/connector.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgruntime/connector.go b/pgruntime/connector.go
index 3a41548..0d79bf1 100644
--- a/pgruntime/connector.go
+++ b/pgruntime/connector.go
@@ -143,7 +143,7 @@ func createDatabaseIfMissing(ctx context.Context, db gsql.Handle, dbName string)
// create database if necessary
if !exists {
- _, err = execQuery(ctx, db, "CREATE DATABASE "+quoteIdentifier(dbName), nil)
+ _, err = gsql.Exec(ctx, db, "CREATE DATABASE "+quoteIdentifier(dbName))
if err != nil {
return fmt.Errorf("during CREATE DATABASE: %w", err)
}
@@ -167,7 +167,7 @@ func resetTestDatabase(ctx context.Context, db gsql.Handle, params testSetupPara
// truncate all tables at once
if len(quotedTableNames) > 0 {
query = fmt.Sprintf(`TRUNCATE %s RESTART IDENTITY CASCADE`, strings.Join(quotedTableNames, ", "))
- _, err = execQuery(ctx, db, query, nil)
+ _, err = gsql.Exec(ctx, db, query)
if err != nil {
return fmt.Errorf("during %s: %w", query, err)
}