summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-12-13 17:09:53 +0100
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-12-13 17:09:53 +0100
commit1bfe90ac4f3a576bc96628d6b0e051a8584f42fe (patch)
treee8166d79d1897f4280b3da11de6d20761f5ce9bb
parent05eca55771b282d84d7798c48471042586cac248 (diff)
downloadlogilab-common-1bfe90ac4f3a576bc96628d6b0e051a8584f42fe.tar.gz
some DBMs need an explicit FROM clause
-rw-r--r--adbh.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/adbh.py b/adbh.py
index 8dd980d..53f8e96 100644
--- a/adbh.py
+++ b/adbh.py
@@ -86,6 +86,8 @@ class _GenericAdvFuncHelper:
"""
# DBMS resources descriptors and accessors
+ needs_from_clause = False
+
users_support = True
groups_support = True
ilike_support = True
@@ -392,6 +394,7 @@ class _SqliteAdvFuncHelper(_GenericAdvFuncHelper):
"""
# modifiable but should not be shared
FUNCTIONS = _GenericAdvFuncHelper.FUNCTIONS.copy()
+
users_support = groups_support = False
ilike_support = False
@@ -413,6 +416,8 @@ class _SqliteAdvFuncHelper(_GenericAdvFuncHelper):
class _MyAdvFuncHelper(_GenericAdvFuncHelper):
"""Postgres helper, taking advantage of postgres SEQUENCE support
"""
+ needs_from_clause = True
+
# modifiable but should not be shared
FUNCTIONS = _GenericAdvFuncHelper.FUNCTIONS.copy()
TYPE_MAPPING = _GenericAdvFuncHelper.TYPE_MAPPING.copy()