You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that keywords get capitalized when in double quotes, e.g. to escape keywords in column names. It would be nice to have an option or mechanism to avoid capitalization of double-quoted keywords for these cases.
I'm using the latest melpa version (20170610.837) on Emacs 25.2.2.
The text was updated successfully, but these errors were encountered:
Hi, and thank you for the feature request! Yeah, I think that's a good idea. I'm not sure I can provide you with an ETA for the code though. As always, pull requests welcome (and if you have never done work on emacs-lisp or in code and you want to get started, let me know and I'll do my best to help you get going).
The cause of this seems to be that by default sql-mode doesn't think double-quotes count as a quoting character in sql.
You tell it that they are quotes by doing: (modify-syntax-entry ?" "\"" sql-mode-syntax-table). Then sqlup seems to work as expected. This might have other consequences that I haven't thought of, but it should be safe.
While @davidshepherd7 's fix does work, it's not quite ideal as it causes quoted identifiers to be highlighted as string literals. Given how easy it is to accidentally use the wrong quotes in SQL (especially coming from languages where it doesn't matter), it would be better if we didn't have to lose that distinction.
I noticed that keywords get capitalized when in double quotes, e.g. to escape keywords in column names. It would be nice to have an option or mechanism to avoid capitalization of double-quoted keywords for these cases.
I'm using the latest melpa version (20170610.837) on Emacs 25.2.2.
The text was updated successfully, but these errors were encountered: