summaryrefslogtreecommitdiff
path: root/adbh.py
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2010-02-17 14:21:50 -0800
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2010-02-17 14:21:50 -0800
commitc16ccecd24c6e8a92cae4b8844d3be66efea30d0 (patch)
tree00617089c41c8a4d0094627bfa77b905b0f56097 /adbh.py
parent9dfc9dee10f4ec15db2e94fd87d3ea6e87fc5563 (diff)
downloadlogilab-common-c16ccecd24c6e8a92cae4b8844d3be66efea30d0.tar.gz
various improvements and fixes concerning logilab.common.db support of SQLServer
Diffstat (limited to 'adbh.py')
-rw-r--r--adbh.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/adbh.py b/adbh.py
index e384fac..4e35750 100644
--- a/adbh.py
+++ b/adbh.py
@@ -602,7 +602,8 @@ class _SqlServer2005FuncHelper(_GenericAdvFuncHelper):
def list_tables(self, cursor):
"""return the list of tables of a database"""
- return [row.table_name for row in cursor.tables()]
+ cursor.tables()
+ return [row.table_name for row in cursor.fetchall()]
def binary_value(self, value):
return StringIO.StringIO(value)