Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Verified
Assignee
Alexey Kudravtsev
Subsystem
IntelliLang
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Alexander Chernikov
    3 years ago (27 May 2008 18:48)
  • Updated by   Evgeniy Schepotiev
    21 months ago (27 Apr 2010 16:29)
  • Jira: IDEADEV-26897
    (history, comments)
 
IDEA-44076 Injected SQL: typing period moves cursor to the next string fragment in conditional operator and string concatenation
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Get a data source with scheme "rubbish" with some tables in it.
Provide settings to inject SQL into the parameter of method giveSql(String sql). Provide code like:
...
		injected.giveSql("select id from rubbish" + "");
		injected.giveSql(2 > 3 ? "select id from rubbish" : "");
...

In every case above type period ('\.') right after schema name. Result: cursor jumps into the next string literal in the expression, and the period is typed there.

Issue was closed
Comments (1)
 
History
 
Linked Issues (?)
 
Alexander Chernikov
  Alexander Chernikov
11 Nov 2008 21:37
3 years ago
9126: fix confirmed.