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

Key: IDEADEV-26896
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
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

Injected SQL: references in the third operand are not resolved if the second operand is integer expression

Created: 27 May 08 17:25   Updated: 27 May 08 17:28
Component/s: SQL, IntelliLang
Fix Version/s: None

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

Build: 8,412


 Description  « Hide
Provide settings to inject SQL into the parameter of method giveSql(String sql). Provide code like:
...
	injected.giveSql("select * from rubbish.t2 where " + 0 + " < id");
...

See that reference to "id" column is resolved. Change code to:

...
	int[] vai = new int[] { 0, 1, 2};
	injected.giveSql("select * from rubbish.t2 where " + vai[0] + " < id");
...

See that syntax highlighting is still here, but reference to "id" is not resolved.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 27 May 08 17:28
The same for any integer expression like variable reference or increment.