Skip to content

Commit 79491b0

Browse files
committed
query escape
1 parent 779c91a commit 79491b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dbos/cli_integration_test.go

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

0 commit comments

Comments
 (0)