#746 - SqlQuery with named parameter and limit/offset gives SQL exception

This commit is contained in:
Robin Bygrave
2016-06-20 22:54:08 +12:00
parent c793d6652f
commit c30e3bf78c
2 changed files with 17 additions and 1 deletions
@@ -219,7 +219,7 @@ public final class RelationalQueryRequest {
int maxRows = query.getMaxRows();
if (firstRow > 0 || maxRows > 0) {
return ebeanServer.getDatabasePlatform().getBasicSqlLimiter()
.limit(query.getQuery(), firstRow, maxRows);
.limit(sql, firstRow, maxRows);
}
return sql;
}