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

This commit is contained in:
Robin Bygrave committed 2016-06-20 22:54:08 +12:00
1 parent c793d6652f
commit c30e3bf78c
2 files changed
+17 -1

No files matched your search

@@ -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;
}