@@ -1031,22 +1031,18 @@ def limitQuery(self, num, query, field=None, uniqueField=None):
10311031 fromFrom = limitedQuery [fromIndex + 1 :]
10321032 orderBy = None
10331033
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 ):
10351035 limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num , 1 )
10361036 limitedQuery += " %s" % limitStr
10371037
1038- elif Backend .getIdentifiedDbms () in (DBMS .H2 ,):
1038+ elif Backend .getIdentifiedDbms () in (DBMS .H2 , DBMS . CRATEDB , DBMS . CLICKHOUSE ):
10391039 limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (1 , num )
10401040 limitedQuery += " %s" % limitStr
10411041
10421042 elif Backend .getIdentifiedDbms () in (DBMS .ALTIBASE ,):
10431043 limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num + 1 , 1 )
10441044 limitedQuery += " %s" % limitStr
10451045
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-
10501046 elif Backend .getIdentifiedDbms () in (DBMS .FRONTBASE , DBMS .VIRTUOSO ):
10511047 limitStr = queries [Backend .getIdentifiedDbms ()].limit .query % (num , 1 )
10521048 if query .startswith ("SELECT " ):
0 commit comments