Skip to content

Commit c187ca3

Browse files
committed
Send password string to sql inputs, not pointer to string.
1 parent f9b966d commit c187ca3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/bsql/provisioning.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ func (s *SQLSyncer) prepareQueryInputs(
244244
return nil, nil, err
245245
}
246246
if password != nil {
247-
queryInputs["password"] = password
248-
credentials["password"] = password
247+
queryInputs["password"] = *password
248+
credentials["password"] = *password
249249
// Create plaintext data for return
250250
passwordData := &v2.PlaintextData{
251251
Name: "password",

pkg/bsql/user_syncer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ func (s *userSyncer) Rotate(ctx context.Context, resourceId *v2.ResourceId, cred
175175
return nil, nil, err
176176
}
177177
if password != nil {
178-
queryInputs["password"] = password
179-
credentials["password"] = password
178+
queryInputs["password"] = *password
179+
credentials["password"] = *password
180180
// Create plaintext data for return
181181
passwordData := &v2.PlaintextData{
182182
Name: "password",

0 commit comments

Comments
 (0)