From ea80bf645b006dba6d1fdbaa891f742c18ae8b02 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 1 Dec 2005 06:38:30 +0000 Subject: [PATCH] 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 --- .../ERP5Catalog/sql/common_mysql/z_reserve_uid.zsql | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/product/ERP5Catalog/sql/common_mysql/z_reserve_uid.zsql b/product/ERP5Catalog/sql/common_mysql/z_reserve_uid.zsql index 49fc8d991b..0a3ef5b358 100755 --- a/product/ERP5Catalog/sql/common_mysql/z_reserve_uid.zsql +++ b/product/ERP5Catalog/sql/common_mysql/z_reserve_uid.zsql @@ -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') -- 2.30.9