From 569babdbe4599a244f83cae3a5419704e68204d5 Mon Sep 17 00:00:00 2001 From: Takuya Kitazawa Date: Fri, 11 Jan 2019 16:53:40 +0900 Subject: [PATCH] Unsupported functions raiaes NotSupportedError --- prestodb/dbapi.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/prestodb/dbapi.py b/prestodb/dbapi.py index 2f687d3..0e829f3 100644 --- a/prestodb/dbapi.py +++ b/prestodb/dbapi.py @@ -217,12 +217,10 @@ def stats(self): return None def setinputsizes(self, sizes): - """Not supported""" - pass + raise prestodb.exceptions.NotSupportedError def setoutputsize(self, size, column): - """Not supported""" - pass + raise prestodb.exceptions.NotSupportedError def execute(self, operation, params=None): self._query = prestodb.client.PrestoQuery(self._request, sql=operation) @@ -231,8 +229,7 @@ def execute(self, operation, params=None): return result def executemany(self, operation, seq_of_params): - """Not supported""" - pass + raise prestodb.exceptions.NotSupportedError def fetchone(self): # type: () -> Optional[List[Any]]