Skip to content

Commit 06ce54c

Browse files
committed
external connection: pass name as parameter
Epic: none Release note: none
1 parent 4ddb3e2 commit 06ce54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/externalconn/record.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func LoadExternalConnection(
9494
// `SELECT` on the system table.
9595
row, cols, err := txn.QueryRowExWithCols(ctx, "lookup-schedule", txn.KV(),
9696
sessiondata.NodeUserSessionDataOverride,
97-
fmt.Sprintf("SELECT * FROM system.external_connections WHERE connection_name = '%s'", name))
97+
"SELECT * FROM system.external_connections WHERE connection_name = $1", name)
9898

9999
if err != nil {
100100
return nil, errors.CombineErrors(err, &ExternalConnectionNotFoundError{connectionName: name})

0 commit comments

Comments
 (0)