fix: update query method to use non-prepared statements for dynamic SQL compatibility
This commit is contained in:
parent
5fe4471fc7
commit
520c12e5a7
@ -78,9 +78,10 @@ module.exports = {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Alias for execute to maintain compatibility
|
// Non-prepared query – avoids server-side prepared-statement issues
|
||||||
|
// (e.g. "Incorrect arguments to mysqld_stmt_execute" with dynamic SQL)
|
||||||
async query(query, params = []) {
|
async query(query, params = []) {
|
||||||
return await pool.execute(query, params);
|
return await pool.query(query, params);
|
||||||
},
|
},
|
||||||
// Get single row
|
// Get single row
|
||||||
async get(query, params = []) {
|
async get(query, params = []) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user