From 21481df239ac1a5d0d2b500dba995bbdb0256de0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 21 Oct 2012 19:00:37 +0200 Subject: [PATCH] Minor update for Issue #209 --- lib/request/inject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/inject.py b/lib/request/inject.py index 56e2849b8..36c76efed 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -172,7 +172,7 @@ def __goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, cha topLimit = re.search("TOP\s+([\d]+)\s+", expression, re.I) if limitRegExp or (Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) and topLimit): - if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL): + if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL, DBMS.SQLITE): limitGroupStart = queries[Backend.getIdentifiedDbms()].limitgroupstart.query limitGroupStop = queries[Backend.getIdentifiedDbms()].limitgroupstop.query @@ -209,7 +209,7 @@ def __goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, cha # From now on we need only the expression until the " LIMIT " # (or similar, depending on the back-end DBMS) word - if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL): + if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL, DBMS.SQLITE): stopLimit += startLimit untilLimitChar = expression.index(queries[Backend.getIdentifiedDbms()].limitstring.query) expression = expression[:untilLimitChar]