Skip to content

Commit 779c91a

Browse files
committed
sanitize in test
1 parent 91f1756 commit 779c91a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/dbos/cli_integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ func testMigrateCommand(t *testing.T, cliPath string, schemaArgs []string, dbRol
256256
if password == "" {
257257
password = "dbos"
258258
}
259-
_, err = db.Exec(fmt.Sprintf("CREATE ROLE %s LOGIN PASSWORD '%s'", dbRole, password))
259+
query := fmt.Sprintf("CREATE ROLE %s LOGIN PASSWORD '%s'", pgx.Identifier{dbRole}.Sanitize(), password)
260+
_, err = db.Exec(query)
260261
require.NoError(t, err)
261262
}
262263

0 commit comments

Comments
 (0)