Skip to content

Commit

Permalink
Fix #556: remove legacy code (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitingren authored Jul 12, 2024
1 parent a83cf0b commit f28ed9b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vertica_python/vertica/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def __init__(self,
self.operation = None
self.prepared_sql = None # last statement been prepared
self.prepared_name = "s0"
self.error = None
self._sql_literal_adapters = {}
self._disable_sqldata_converter = False
self._sqldata_converters = {}
Expand Down Expand Up @@ -528,9 +527,6 @@ def copy(self, sql: str, data: Union[IO[AnyStr], bytes, str], **kwargs: Any) ->
else:
raise errors.MessageError(f'Unexpected message: {message}')

if self.error is not None:
raise self.error

def object_to_sql_literal(self, py_obj: Any) -> str:
"""Returns the SQL literal string converted from a Python object."""
return self.object_to_string(py_obj, False)
Expand Down

0 comments on commit f28ed9b

Please sign in to comment.