Closed Choc13 closed 1 year ago
Thanks, this is definitely improvement.
Do you think the replace is too naive? (I know it was there already.) Like what if your table/column contains a weird name like `Person[backup]` ?
That is a good point. I wondered the same but didn't change it as I saw a comment about []
being used as an internal representation so figured the replacement was there in order to switch to the MySQL specific quotations. However I think you are right that if the table/schéma did also contain those chars then they would be incorrectly substituted.
It seems like a separate change set though to remodel the internal quoting behaviour to address this. I would have thought it should be sufficient to not use any quote symbol internally and just do vendor specific quoting in each provider, but there are likely reasons I'm not aware of given I've only spent an hour or so looking over this code.
You are correct, thanks, will release this.
Proposed Changes
Adds backtick quotes around all schema names in MySQL queries. Addresses #776.
Types of changes
Checklist