diff --git a/electron/drivers/mysql.ts b/electron/drivers/mysql.ts index 4a47713..3330af3 100644 --- a/electron/drivers/mysql.ts +++ b/electron/drivers/mysql.ts @@ -151,7 +151,7 @@ export default class MySQLDriver implements BaseDriver { conn: Pool | PoolConnection, statement: string, ): Promise { - 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