Commit 27a88c96 authored by Jérome Perrin's avatar Jérome Perrin

mysql_innodb_catalog: simplify query generations using <dtml-sqltest>

parent fbdb4ec9
DELETE FROM DELETE FROM
item item
WHERE WHERE
<dtml-in uid> <dtml-sqltest uid type="int" multiple>
uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in>
; ;
<dtml-var "'\0'"> <dtml-var "'\0'">
......
DELETE FROM DELETE FROM
category category
WHERE WHERE
<dtml-in uid> <dtml-sqltest uid type="int" multiple>
uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in>
; ;
<dtml-var "'\0'"> <dtml-var "'\0'">
<dtml-let category_list="[]" getCategoryParentUidList="portal_categories.getCategoryParentUidList"> <dtml-let category_list="[]" getCategoryParentUidList="portal_categories.getCategoryParentUidList">
......
DELETE FROM DELETE FROM
category category
WHERE WHERE
<dtml-in uid> <dtml-sqltest uid type="int" multiple>
uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in>
; ;
<dtml-var "'\0'"> <dtml-var "'\0'">
<dtml-let category_list="[]" getCategoryParentUidList="portal_categories.getCategoryParentUidList"> <dtml-let category_list="[]" getCategoryParentUidList="portal_categories.getCategoryParentUidList">
......
DELETE FROM DELETE FROM
predicate_category predicate_category
WHERE WHERE
<dtml-in uid> <dtml-sqltest uid type="int" multiple>
uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in>
; ;
<dtml-var "'\0'"> <dtml-var "'\0'">
......
DELETE FROM DELETE FROM
stock stock
WHERE WHERE
<dtml-in uid> <dtml-sqltest uid type="int" multiple>
uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if>
</dtml-in>
; ;
<dtml-var "'\0'"> <dtml-var "'\0'">
......
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