diff options
Diffstat (limited to 'pgruntime/connector.go')
| -rw-r--r-- | pgruntime/connector.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgruntime/connector.go b/pgruntime/connector.go index c60b8d4..3a41548 100644 --- a/pgruntime/connector.go +++ b/pgruntime/connector.go @@ -136,7 +136,7 @@ func (c Connector[T]) ConnectForTest(t assert.TestingTB, behavior ConnectionBeha func createDatabaseIfMissing(ctx context.Context, db gsql.Handle, dbName string) error { // check if database exists - exists, err := selectOneValue[bool](ctx, db, `SELECT COUNT(*) > 0 FROM pg_catalog.pg_database WHERE datname = $1`, dbName) + exists, err := oblast.SelectOne[bool](ctx, db, `SELECT COUNT(*) > 0 FROM pg_catalog.pg_database WHERE datname = $1`, dbName) if err != nil { return fmt.Errorf("while reading from pg_catalog.pg_database: %w", err) } |
