Commit cf1fc096 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_mysql_innodb_catalog: Insert NULL when getUserId returns None.

And not the string "None". I thought ZSQLMethods were supposed to complain
when receiving None for non-optional fields...
parent 4af4f361
...@@ -2,7 +2,7 @@ REPLACE INTO `user` (`uid`, `user_id`) VALUES ...@@ -2,7 +2,7 @@ REPLACE INTO `user` (`uid`, `user_id`) VALUES
<dtml-in prefix="loop" expr="_.range(_.len(uid))"> <dtml-in prefix="loop" expr="_.range(_.len(uid))">
( (
<dtml-sqlvar expr="uid[loop_item]" type="int">, <dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="getUserId[loop_item]" type="string"> <dtml-sqlvar expr="getUserId[loop_item]" type="string" optional>
) )
<dtml-if sequence-end><dtml-else>,</dtml-if> <dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in> </dtml-in>
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