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