when used without offset, the limit param doesn't result in an SQL query with a LIMIT clause; likewise, when used without limit, the offset param doesn't result in an SQL query with an OFFSET clause. This patch removes the use of a Python slice for LIMIT and OFFSET and makes use of the limit() and offset() Query methods instead, in this way the code is more readable and more importantly less error-prone. Thanks yjacolin for the bug report. r=pvalsecc (closes #325)
when used without offset, the limit param doesn't result in an SQL query with a LIMIT clause; likewise, when used without limit, the offset param doesn't result in an SQL query with an OFFSET clause. This patch removes the use of a Python slice for LIMIT and OFFSET and makes use of the limit() and offset() Query methods instead, in this way the code is more readable and more importantly less error-prone. Thanks yjacolin for the bug report. r=pvalsecc (closes #325)


git-svn-id: 8af3510caa0da55760593bee91f6642c197586ea@1378 25cca10d-0837-0410-9e4f-92b931fda1bc

mapfish/mapfish,mapfish/mapfish,mapfish/mapfish