#1375 - Bug: RawSql parsing fails when using placeholders

This commit is contained in:
rob bygrave
2018-05-17 12:48:08 +12:00
parent 53b606289d
commit cb0dee998b
2 changed files with 17 additions and 6 deletions
@@ -1,7 +1,7 @@
package io.ebeaninternal.server.rawsql;
import io.ebeaninternal.server.rawsql.SpiRawSql.Sql;
import io.ebeaninternal.server.querydefn.SimpleTextParser;
import io.ebeaninternal.server.rawsql.SpiRawSql.Sql;
/**
* Parses sql-select queries to try and determine the location where WHERE and
@@ -55,11 +55,7 @@ class DRawSqlParser {
private Sql parse() {
if (!hasPlaceHolders()) {
// parse the sql for the keywords...
// select, from, where, having, group by, order by
parseSqlFindKeywords(true);
}
parseSqlFindKeywords(true);
whereExprPos = findWhereExprPosition();
havingExprPos = findHavingExprPosition();