Skip to content

Commit

Permalink
use QUERY instead of EXECUTE for mysql to support USE statement
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Dec 8, 2024
1 parent 7e7a010 commit 80f6d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/drivers/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default class MySQLDriver implements BaseDriver {
conn: Pool | PoolConnection,
statement: string,
): Promise<Result> {
const [result, fieldsets] = await conn.execute(statement);
const [result, fieldsets] = await conn.query(statement);

// If it is not an array, it means
// it is not a SELECT statement
Expand Down

0 comments on commit 80f6d91

Please sign in to comment.