Commit 26660904 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

In some cases (including our unit test environments), these ZSQL methods...

In some cases (including our unit test environments), these ZSQL methods return wrong value if user-defined variables are initialised with empty string, but they return correct value if initialised with NULL instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24111 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f3d7929
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
<key> <string>src</string> </key> <key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
SET @current_path = \'\'; <dtml-var "\'\\0\'">\n SET @current_path = NULL; <dtml-var sql_delimiter>\n
SET @current_reference = \'\'; <dtml-var "\'\\0\'">\n SET @current_reference = NULL; <dtml-var sql_delimiter>\n
\n \n
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n <dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n
<dtml-let user_language="Localizer.get_selected_language()">\n <dtml-let user_language="Localizer.get_selected_language()">\n
...@@ -180,8 +180,8 @@ LIMIT 1000\n ...@@ -180,8 +180,8 @@ LIMIT 1000\n
<key> <string>raw</string> </key> <key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
SET @current_path = \'\'; <dtml-var "\'\\0\'">\n SET @current_path = NULL; <dtml-var sql_delimiter>\n
SET @current_reference = \'\'; <dtml-var "\'\\0\'">\n SET @current_reference = NULL; <dtml-var sql_delimiter>\n
\n \n
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n <dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n
<dtml-let user_language="Localizer.get_selected_language()">\n <dtml-let user_language="Localizer.get_selected_language()">\n
......
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
<key> <string>src</string> </key> <key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
SET @current_path = \'\'; <dtml-var "\'\\0\'">\n SET @current_path = NULL; <dtml-var sql_delimiter>\n
SET @current_reference = \'\'; <dtml-var "\'\\0\'">\n SET @current_reference = NULL; <dtml-var sql_delimiter>\n
\n \n
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n <dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n
<dtml-let user_language="Localizer.get_selected_language()">\n <dtml-let user_language="Localizer.get_selected_language()">\n
...@@ -181,8 +181,8 @@ LIMIT 1000\n ...@@ -181,8 +181,8 @@ LIMIT 1000\n
<key> <string>raw</string> </key> <key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
SET @current_path = \'\'; <dtml-var "\'\\0\'">\n SET @current_path = NULL; <dtml-var sql_delimiter>\n
SET @current_reference = \'\'; <dtml-var "\'\\0\'">\n SET @current_reference = NULL; <dtml-var sql_delimiter>\n
\n \n
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n <dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n
<dtml-let user_language="Localizer.get_selected_language()">\n <dtml-let user_language="Localizer.get_selected_language()">\n
......
931 932
\ 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