History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-27325
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Gregory Shrago
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

SQL: String literal with injected MySQL has SQL-92 keywords highlighting

Created: 17 Jun 08 20:06   Updated: 28 Jul 08 18:12
Component/s: SQL
Fix Version/s: Diana 8637

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 8,474
Fixed in build: 8,552


 Description  « Hide
Provide Java String literal with MySQL injected via IntelliLang:
...
	@NonNls @Language("MySQL") final String sql = "show tables;";
...

See that "show" keyword is shown in plain style, like it would be not a keyword.
In .sql file with MySQL dialect "show" is shown as keyword.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 10 Jul 08 21:50
8554: the fragment of my code:
...
	@NonNls @Language("MySQL") final String sql2 = "show tables;";
	@NonNls @Language("MySQL") final String sql = "show tables;";
	PreparedStatement pst = con.prepareStatement(sql);
...

"sql2" is not used anywhere.
Erased .IntelliJIdea80/system, restart IDEA.

Just after opening the project all SQL tokens are plain. The 1st "show" is red, the 2nd is yellow.
After editing the file in arbitrary position both "show" are red.


Alexander Chernikov - 28 Jul 08 18:12
8624: already fixed.