From 9cbefa7830bc70aa35637dcab3b09fef58651f61 Mon Sep 17 00:00:00 2001 From: "Visal .In" Date: Thu, 21 Nov 2024 13:53:43 +0700 Subject: [PATCH] raw now will call internalQuery --- src/connections/sql-base.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connections/sql-base.ts b/src/connections/sql-base.ts index 652753c..8573799 100644 --- a/src/connections/sql-base.ts +++ b/src/connections/sql-base.ts @@ -47,7 +47,7 @@ export abstract class SqlConnection extends Connection { query: string, params?: Record | unknown[] ): Promise { - if (!params) return await this.query({ query }); + if (!params) return await this.internalQuery({ query }); // Positional placeholder if (Array.isArray(params)) { @@ -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