Commit 15b0debd authored by Aurel's avatar Aurel

add a zsql method to retrieve last generated by id tool for a givent id group

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23201 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2ee0103
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="SQL" module="Products.ZSQLMethods.SQL"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>id_group</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>id_group</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_col</string> </key>
<value>
<list>
<dictionary>
<item>
<key> <string>name</string> </key>
<value> <string>last_id</string> </value>
</item>
<item>
<key> <string>null</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>l</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</list>
</value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string>id_group</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>cmf_activity_sql_connection</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>z_portal_ids_get_last_id</string> </value>
</item>
<item>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
SELECT\n
last_id\n
FROM portal_ids\n
WHERE\n
`id_group` = <dtml-sqlvar id_group type="string">\n
]]></string> </value>
</item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
SELECT\n
last_id\n
FROM portal_ids\n
WHERE\n
`id_group` = <dtml-sqlvar id_group type="string">\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -69,6 +69,7 @@ erp5_mysql_innodb/z_getitem_by_path ...@@ -69,6 +69,7 @@ erp5_mysql_innodb/z_getitem_by_path
erp5_mysql_innodb/z_getitem_by_uid erp5_mysql_innodb/z_getitem_by_uid
erp5_mysql_innodb/z_portal_ids_commit erp5_mysql_innodb/z_portal_ids_commit
erp5_mysql_innodb/z_portal_ids_generate_id erp5_mysql_innodb/z_portal_ids_generate_id
erp5_mysql_innodb/z_portal_ids_get_last_id
erp5_mysql_innodb/z_produce_reserved_uid_list erp5_mysql_innodb/z_produce_reserved_uid_list
erp5_mysql_innodb/z_read_recorded_object_list erp5_mysql_innodb/z_read_recorded_object_list
erp5_mysql_innodb/z_record_object_list erp5_mysql_innodb/z_record_object_list
......
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