Skip to content

Commit

Permalink
Fix type object for python 3 (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitingren authored Mar 5, 2019
1 parent 7a0078e commit e0b3f93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vertica_python/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ def __cmp__(self, other):
else:
return -1

def __eq__(self, other):
return other in self.values

def __ne__(self, other):
return other not in self.values


# dbapi: type object used to describe columns that are string-based
STRING = VerticaType(VerticaType.CHAR, VerticaType.VARCHAR, VerticaType.BINARY,
Expand Down

0 comments on commit e0b3f93

Please sign in to comment.