Commit ea80bf64 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use REPLACE rather than UPDATE because z_reserve_uid is used to insert a dummy entry, too.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4439 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e05e4764
......@@ -8,9 +8,7 @@ class_name:
class_file:
</dtml-comment>
<params>uid:int</params>
UPDATE
catalog
SET
id = 'used'
WHERE
uid = <dtml-sqlvar uid type="int">
REPLACE INTO
catalog (uid, id, path)
VALUES
(<dtml-sqlvar uid type="int">, 'used', 'reserved')
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