diff --git a/requirements-iris.txt b/requirements-iris.txt index d4363d8..9867a94 100644 --- a/requirements-iris.txt +++ b/requirements-iris.txt @@ -1 +1 @@ -https://github.com/intersystems-community/intersystems-irispython/releases/download/3.7.7/intersystems_iris-3.7.7-py3-none-any.whl \ No newline at end of file +https://github.com/intersystems-community/intersystems-irispython/releases/download/3.7.8/intersystems_iris-3.7.8-py3-none-any.whl \ No newline at end of file diff --git a/sqlalchemy_iris/base.py b/sqlalchemy_iris/base.py index 6ec259f..729aafc 100644 --- a/sqlalchemy_iris/base.py +++ b/sqlalchemy_iris/base.py @@ -105,8 +105,8 @@ def check_constraints(cls): "LONGVARCHAR": LONGVARCHAR, "NUMERIC": NUMERIC, "SMALLINT": SMALLINT, - "TIME": TIME, - "TIMESTAMP": TIMESTAMP, + "TIME": IRISTime, + "TIMESTAMP": IRISTimeStamp, "TINYINT": TINYINT, "VARBINARY": VARBINARY, "VARCHAR": VARCHAR, @@ -925,8 +925,8 @@ def on_connect(conn): cursor.execute("%CHECKPRIV SELECT ON %Dictionary.PropertyDefinition") self._dictionary_access = cursor.sqlcode == 0 - if not self.supports_vectors: - util.warn("No native support for VECTOR or not activated by license") + # if not self.supports_vectors: + # util.warn("No native support for VECTOR or not activated by license") if not self._dictionary_access: util.warn( """ diff --git a/sqlalchemy_iris/types.py b/sqlalchemy_iris/types.py index d77a373..bee12ad 100644 --- a/sqlalchemy_iris/types.py +++ b/sqlalchemy_iris/types.py @@ -58,6 +58,8 @@ def process(value): class IRISTimeStamp(sqltypes.DateTime): + __visit_name__ = "timestamp" + def bind_processor(self, dialect): def process(value: datetime.datetime): if value is not None: @@ -84,6 +86,8 @@ def process(value): class IRISDateTime(sqltypes.DateTime): + __visit_name__ = "datetime" + def bind_processor(self, dialect): def process(value): if value is not None: @@ -106,6 +110,8 @@ def process(value): class IRISTime(sqltypes.DateTime): + __visit_name__ = "time" + def bind_processor(self, dialect): def process(value): if value is not None: