Skip to content

Commit

Permalink
raw now will call internalQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Nov 21, 2024
1 parent acff5c5 commit 9cbefa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connections/sql-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export abstract class SqlConnection extends Connection {
query: string,
params?: Record<string, unknown> | unknown[]
): Promise<QueryResult> {
if (!params) return await this.query({ query });
if (!params) return await this.internalQuery({ query });

// Positional placeholder
if (Array.isArray(params)) {
Expand All @@ -57,13 +57,13 @@ export abstract class SqlConnection extends Connection {
params
);

return await this.query({
return await this.internalQuery({
query: newQuery,
parameters: bindings,
});
}

return await this.query({ query, parameters: params });
return await this.internalQuery({ query, parameters: params });
}

// Named placeholder
Expand Down

0 comments on commit 9cbefa7

Please sign in to comment.