From 5348b142bb06e90505b7dda4a23c59a8c1423269 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 7 Feb 2005 17:25:16 +0000 Subject: [PATCH] Return only uid if uid_only is true. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2433 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/sql/common_mysql/z_getitem_by_path.zsql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5Catalog/sql/common_mysql/z_getitem_by_path.zsql b/product/ERP5Catalog/sql/common_mysql/z_getitem_by_path.zsql index c2499948e0..e5ae488793 100755 --- a/product/ERP5Catalog/sql/common_mysql/z_getitem_by_path.zsql +++ b/product/ERP5Catalog/sql/common_mysql/z_getitem_by_path.zsql @@ -7,5 +7,6 @@ cache_time:0 class_name:ZSQLBrain class_file:zsqlbrain.py </dtml-comment> -<params>path</params> -select * from catalog where <dtml-sqltest path op=eq type="string"> \ No newline at end of file +<params>path +uid_only</params> +select <dtml-if uid_only>uid<dtml-else>*</dtml-if> from catalog where <dtml-sqltest path op=eq type="string"> \ No newline at end of file -- 2.30.9