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
FROM syncml\n
WHERE\n
path like <dtml-sqlvar path type="string">\n
<dtml-if first_call>\n
/* Do nothing here */\n
<dtml-else>\n
AND gid >= <dtml-sqlvar min_gid type="string">\n
<dtml-if min_gid>\n
<dtml-if first_call>\n
/* Do nothing here */\n
<dtml-else>\n
AND gid >= <dtml-sqlvar min_gid type="string">\n
</dtml-if>\n
</dtml-if>\n
<dtml-if last_call>\n
/* Do nothing here */\n
<dtml-else>\n
AND gid <= <dtml-sqlvar max_gid type="string">\n
<dtml-if max_gid>\n
<dtml-if last_call>\n
/* Do nothing here */\n
<dtml-else>\n
AND gid <= <dtml-sqlvar max_gid type="string">\n
</dtml-if>\n
</dtml-if>\n
ORDER BY gid\n
<dtml-if limit>\n
LIMIT <dtml-var limit>\n
LIMIT <dtml-var limit>\n
</dtml-if>
]]></string> </value>
......
94
\ No newline at end of file
95
\ 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