Closed zer09 closed 2 years ago
With this query
SELECT ?? FROM ?? WHERE id=?
This will perfectly works if executed like this
connectionPool.query<RowDataPacket[]>(query, [arrayOfColumns,tableName,id])
But when used like this
connectionPool.execute<RowDataPacket[]>(query, [arrayOfColumns,tableName,id])
I am getting this
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?\\nFROM ??\\nWHERE id=?
This module has no method named execute.
execute
Sorry it should be on node-mysql2. I created new issue there https://github.com/sidorares/node-mysql2/issues/1356#issue-944434972
With this query
This will perfectly works if executed like this
But when used like this
I am getting this