Skip to content

Commit

Permalink
use query instead of execute for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 16, 2024
1 parent 32bc500 commit bb9e8a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/connections/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,11 @@ export class MySQLConnection extends SqlConnection {
error: QueryError | null;
fields: FieldPacket[];
}>((r) =>
this.conn.execute(
{ sql: query.query, rowsAsArray: true },
this.conn.query(
{
sql: query.query,
rowsAsArray: true,
},
query.parameters,
(error, result, fields) => {
if (Array.isArray(result)) {
Expand Down

0 comments on commit bb9e8a2

Please sign in to comment.