abreslav / alvor

Automatically exported from code.google.com/p/alvor
Eclipse Public License 1.0
2 stars 1 forks source link

@ResultForSQLChecker: allow to define dynamically constructed result #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Example:
public String getSelectClause(String tableAlias) { ... }

I'd like to tell the checker to treat result of this method as
"SELECT " + tableAlias + "." + *

Right now I've set the result to be

 @ResultForSQLChecker SELECT 1 

but it fails reasonably for queries like:
String sql = "SELECT f.* FROM (" + mapper.getSelectClause("m") + " FROM foo m) 
f WHERE f.bar > 1"
and that's where dynamics of ResultForSQLChecker would be a solution.

Original issue reported on code.google.com by Jevge...@gmail.com on 25 May 2011 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by aivar.annamaa@gmail.com on 9 Jun 2011 at 12:37