Embedded SQL Quotes Removed by Formatter

I feel like I have to have set something wrong somewhere... I'm cleaning up a project I inherited. and if I have a line like such...

     $query  = 'SELECT * FROM a WHERE b = "c"';

After formatting the project I end up with...

     $query  = 'SELECT * FROM a WHERE b = c';


Which clearly is not right... Especially when those lines are enclosed in //@formatter:off/on tags.

A few caveats: I did upgrade to PhpStorm 9.0.1 just in case, I did search and found https://devnet.jetbrains.com/message/5512205#5512205 but that refers to quoted strings in place of columns not in a where clause and I did check and my SQL Dialect is set to MySQL.

Can anyone point me in the right direction?

Thanks!
1 comment
Comment actions Permalink

Hi there,

Could you please create a sample project that would reproduce the issue and attach it here (whole project folder with all required files)?

For me it works just fine.

0

Please sign in to leave a comment.