SQL files are not identified as SQL with specific name (in my case it's query.sql)
Answered
Hello, community!
I have PyCharm 2020.1 build #PY-201.6668.115. Since this version I've started to encounter a very strange issue, when my files named query.sql are not identified as SQL files and syntax highlighting doesn't work. If I simply rename the file to something_else.sql, everything appears to be fine. You can see example of such behaviour in the screenshot:

As you see, init.sql file is identified correctly, when query.sql is not. As I just mentioned, simple renaming helps.
Any suggestions or workarounds?
Please sign in to leave a comment.
Hello, I've created bug report on our tracker, please follow and vote https://youtrack.jetbrains.com/issue/DBE-10750
Same issue on PyCharm 2021.1
Please go to Settings/Preferences | Editor | File Types and make sure that the file is not associated with Text file type.