diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2007-12-13 17:09:53 +0100 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2007-12-13 17:09:53 +0100 |
commit | 1bfe90ac4f3a576bc96628d6b0e051a8584f42fe (patch) | |
tree | e8166d79d1897f4280b3da11de6d20761f5ce9bb | |
parent | 05eca55771b282d84d7798c48471042586cac248 (diff) | |
download | logilab-common-1bfe90ac4f3a576bc96628d6b0e051a8584f42fe.tar.gz |
some DBMs need an explicit FROM clause
-rw-r--r-- | adbh.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() |