aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/python/pgdb.py')
-rw-r--r--src/interfaces/python/pgdb.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index 78ca61ade52..62b551b9954 100644
--- a/src/interfaces/python/pgdb.py
+++ b/src/interfaces/python/pgdb.py
@@ -240,7 +240,10 @@ class pgdbCursor:
size = self.arraysize
if keep == 1:
self.arraysize = size
- res = self.__source.fetch(size)
+
+ try: res = self.__source.fetch(size)
+ except _pg.error, e: raise DatabaseError, str(e)
+
result = []
for r in res:
row = []
@@ -253,6 +256,9 @@ class pgdbCursor:
result.append(row)
return result
+ def nextset(self):
+ raise NotSupportedError, "nextset() is not supported"
+
def setinputsizes(self, sizes):
pass