diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index 78ca61ade52058478df1d750a0b8ae44edd7ad8e..62b551b9954c76fbe28f283d14ca2a033da9b949 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