Commit 8573808a authored by Aurel's avatar Aurel

min/max_gid are not always passed as argument

parent ded0d9ae
...@@ -63,19 +63,23 @@ SELECT \n ...@@ -63,19 +63,23 @@ SELECT \n
FROM syncml\n FROM syncml\n
WHERE\n WHERE\n
path like <dtml-sqlvar path type="string">\n path like <dtml-sqlvar path type="string">\n
<dtml-if first_call>\n <dtml-if min_gid>\n
/* Do nothing here */\n <dtml-if first_call>\n
<dtml-else>\n /* Do nothing here */\n
AND gid >= <dtml-sqlvar min_gid type="string">\n <dtml-else>\n
AND gid >= <dtml-sqlvar min_gid type="string">\n
</dtml-if>\n
</dtml-if>\n </dtml-if>\n
<dtml-if last_call>\n <dtml-if max_gid>\n
/* Do nothing here */\n <dtml-if last_call>\n
<dtml-else>\n /* Do nothing here */\n
AND gid <= <dtml-sqlvar max_gid type="string">\n <dtml-else>\n
AND gid <= <dtml-sqlvar max_gid type="string">\n
</dtml-if>\n
</dtml-if>\n </dtml-if>\n
ORDER BY gid\n ORDER BY gid\n
<dtml-if limit>\n <dtml-if limit>\n
LIMIT <dtml-var limit>\n LIMIT <dtml-var limit>\n
</dtml-if> </dtml-if>
]]></string> </value> ]]></string> </value>
......
94 95
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment