Skip to content

Commit 569babd

Browse files
takutiggreg
authored andcommitted
Unsupported functions raiaes NotSupportedError
1 parent f0efe0e commit 569babd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

prestodb/dbapi.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,10 @@ def stats(self):
217217
return None
218218

219219
def setinputsizes(self, sizes):
220-
"""Not supported"""
221-
pass
220+
raise prestodb.exceptions.NotSupportedError
222221

223222
def setoutputsize(self, size, column):
224-
"""Not supported"""
225-
pass
223+
raise prestodb.exceptions.NotSupportedError
226224

227225
def execute(self, operation, params=None):
228226
self._query = prestodb.client.PrestoQuery(self._request, sql=operation)
@@ -231,8 +229,7 @@ def execute(self, operation, params=None):
231229
return result
232230

233231
def executemany(self, operation, seq_of_params):
234-
"""Not supported"""
235-
pass
232+
raise prestodb.exceptions.NotSupportedError
236233

237234
def fetchone(self):
238235
# type: () -> Optional[List[Any]]

0 commit comments

Comments
 (0)