diff --git a/vertica_python/datatypes.py b/vertica_python/datatypes.py index c31b9ead..af49860a 100644 --- a/vertica_python/datatypes.py +++ b/vertica_python/datatypes.py @@ -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,