@@ -1031,22 +1031,18 @@ def limitQuery(self, num, query, field=None, uniqueField=None):
1031
1031
fromFrom = limitedQuery [fromIndex + 1 :]
1032
1032
orderBy = None
1033
1033
1034
- if Backend .getIdentifiedDbms () in (DBMS .MYSQL , DBMS .PGSQL , DBMS .SQLITE , DBMS .H2 , DBMS . VERTICA , DBMS .PRESTO , DBMS .MIMERSQL , DBMS .CUBRID , DBMS .EXTREMEDB , DBMS .RAIMA ):
1034
+ if Backend .getIdentifiedDbms () in (DBMS .MYSQL , DBMS .PGSQL , DBMS .SQLITE , DBMS .VERTICA , DBMS .PRESTO , DBMS .MIMERSQL , DBMS .CUBRID , DBMS .EXTREMEDB , DBMS .DERBY ):
1035
1035
limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num , 1 )
1036
1036
limitedQuery += " %s" % limitStr
1037
1037
1038
- elif Backend .getIdentifiedDbms () in (DBMS .H2 ,):
1038
+ elif Backend .getIdentifiedDbms () in (DBMS .H2 , DBMS . CRATEDB , DBMS . CLICKHOUSE ):
1039
1039
limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (1 , num )
1040
1040
limitedQuery += " %s" % limitStr
1041
1041
1042
1042
elif Backend .getIdentifiedDbms () in (DBMS .ALTIBASE ,):
1043
1043
limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num + 1 , 1 )
1044
1044
limitedQuery += " %s" % limitStr
1045
1045
1046
- elif Backend .getIdentifiedDbms () in (DBMS .DERBY , DBMS .CRATEDB , DBMS .CLICKHOUSE ):
1047
- limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num , 1 )
1048
- limitedQuery += " %s" % limitStr
1049
-
1050
1046
elif Backend .getIdentifiedDbms () in (DBMS .FRONTBASE , DBMS .VIRTUOSO ):
1051
1047
limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num , 1 )
1052
1048
if query .startswith ("SELECT " ):
0 commit comments