From af363af5831700c25a12b0de043b6b44f7ef3f37 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 3 Jun 2008 13:57:16 +0000
Subject: [PATCH] add logs when buildSQLQuery is not working as expected

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21285 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/SQLCatalog.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py
index 1eb3d512ec..50802f4eaf 100644
--- a/product/ZSQLCatalog/SQLCatalog.py
+++ b/product/ZSQLCatalog/SQLCatalog.py
@@ -1932,6 +1932,8 @@ class Catalog(Folder,
             elif key == 'uid':
               # uid is always ambiguous so we can only change it here
               new_key = 'catalog.uid'
+            else:
+              LOG('SQLCatalog', WARNING, 'buildSQLQuery this key is too ambiguous : %s' % key)
           else:
             new_key = key
           if new_key is not None:
-- 
2.30.9