Skip to content

Commit 9cbefa7

Browse files
committed
raw now will call internalQuery
1 parent acff5c5 commit 9cbefa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/connections/sql-base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export abstract class SqlConnection extends Connection {
4747
query: string,
4848
params?: Record<string, unknown> | unknown[]
4949
): Promise<QueryResult> {
50-
if (!params) return await this.query({ query });
50+
if (!params) return await this.internalQuery({ query });
5151

5252
// Positional placeholder
5353
if (Array.isArray(params)) {
@@ -57,13 +57,13 @@ export abstract class SqlConnection extends Connection {
5757
params
5858
);
5959

60-
return await this.query({
60+
return await this.internalQuery({
6161
query: newQuery,
6262
parameters: bindings,
6363
});
6464
}
6565

66-
return await this.query({ query, parameters: params });
66+
return await this.internalQuery({ query, parameters: params });
6767
}
6868

6969
// Named placeholder

0 commit comments

Comments
 (0)