-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column escaping is broken when using MySQL version 8.0.21 #57
Comments
Hi @dovidgef that is interesting. Not escaping You can always provide raw SQL to any |
Sorry, I know I said Basically, we can add the above and then the following would work as expected: SqlString.format('SELECT ?? FROM ??', [[SqlString.raw('*')], 'testTable']) // => SELECT * FROM `testTable` (you can always declare |
I went ahead and created a PR to add this feature. |
closes mysqljs#57 closes mysqljs#58
closes mysqljs#57 closes mysqljs#58
It appears that the issue I posted in the
mysql2
repo really points to an issue related to code within this library.mysql2 Issue #1283
Would it make sense to update the
escapeId
method to skip quoting columns named*
perhaps?Or at least add a flag that would optionally tell escapeId to skip quoting
*
?The text was updated successfully, but these errors were encountered: