Skip to content

fix: parameterized queries #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

karenc-bq
Copy link
Contributor

@karenc-bq karenc-bq commented Aug 18, 2025

Summary

Add missing API from community drivers.
Update clients to make it more clear which methods are from community drivers and which ones are wrapper-specific

Description

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@karenc-bq karenc-bq force-pushed the fix/parameterized-queries branch 6 times, most recently from 2deb472 to 182e682 Compare August 19, 2025 22:00
@@ -5,6 +5,7 @@ on:
push:
branches:
- main
- fix/parameterized-queries
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove before merging

@karenc-bq karenc-bq marked this pull request as ready for review August 19, 2025 22:12
@karenc-bq karenc-bq requested a review from a team as a code owner August 19, 2025 22:12
@karenc-bq karenc-bq force-pushed the fix/parameterized-queries branch from 182e682 to 2dc2a57 Compare August 20, 2025 08:51
private async updateState(client: any, options: string | QueryOptions, values?: any): Promise<any> {
let sql: string;
if (typeof options === "string") {
sql = client.format(options, values);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be important to add some sort of null check for client before calling client.format?

);

itIfPG(
"pg parameterized query with QueryConfig",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can there also be a test for QueryArrayConfig?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants