Commit faadbbfa authored by Jérome Perrin's avatar Jérome Perrin

Add left join support to coordinate related keys

parent afc14e0f
......@@ -9,7 +9,9 @@
<item>
<key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n
table_1</string> </value>
table_1\r\n
query_table="catalog"\r\n
RELATED_QUERY_SEPARATOR=" AND "</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
......@@ -23,13 +25,11 @@ table_1</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
table_0 : catalog as child\n
table_1 : address as address\n
</dtml-comment>\n
catalog.uid = <dtml-var table_0>.parent_uid\n
AND <dtml-var table_0>.portal_type = \'Address\'\n
AND <dtml-var table_0>.uid = <dtml-var table_1>.uid
<dtml-var table_0>.uid = <dtml-var table_1>.uid\n
<dtml-var RELATED_QUERY_SEPARATOR>\n
<dtml-var table_0>.portal_type = \'Address\'\n
AND <dtml-var query_table>.uid = <dtml-var table_0>.parent_uid\n
]]></string> </value>
</item>
......
......@@ -9,7 +9,9 @@
<item>
<key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n
table_1</string> </value>
table_1\r\n
query_table="catalog"\r\n
RELATED_QUERY_SEPARATOR=" AND "</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
......@@ -23,13 +25,11 @@ table_1</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
table_0 : catalog as child\n
table_1 : telephone as telephone\n
</dtml-comment>\n
catalog.uid = <dtml-var table_0>.parent_uid\n
AND <dtml-var table_0>.portal_type = \'Telephone\'\n
AND <dtml-var table_0>.uid = <dtml-var table_1>.uid
<dtml-var table_0>.uid = <dtml-var table_1>.uid\n
<dtml-var RELATED_QUERY_SEPARATOR>\n
<dtml-var table_0>.portal_type = \'Telephone\'\n
AND <dtml-var query_table>.uid = <dtml-var table_0>.parent_uid\n
]]></string> </value>
</item>
......
......@@ -10,7 +10,8 @@
<key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n
table_1\r\n
query_table</string> </value>
query_table="catalog"\r\n
RELATED_QUERY_SEPARATOR=" AND "</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
......@@ -25,10 +26,10 @@ query_table</string> </value>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_0>.uid = <dtml-var table_1>.uid\n
AND <dtml-var table_0>.parent_uid = <dtml-var query_table>.uid\n
<dtml-var RELATED_QUERY_SEPARATOR>\n
<dtml-var table_0>.parent_uid = <dtml-var query_table>.uid\n
AND <dtml-var table_0>.portal_type = \'Email\'\n
AND <dtml-var table_0>.id = \'default_email\'\n
\n
]]></string> </value>
......
1035
\ No newline at end of file
1036
\ 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