Skip to content

Commit 6479c39

Browse files
committed
some more fixes for official driver
1 parent 27fb25b commit 6479c39

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

sqlalchemy_iris/requirements.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,8 @@ def datetime_literals(self):
960960
literal string, e.g. via the TypeEngine.literal_processor() method.
961961
962962
"""
963-
964-
return exclusions.open()
963+
# works stable only on Community driver
964+
return self.community_driver
965965

966966
@property
967967
def datetime(self):

tests/test_alembic.py

+12-8
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,18 @@ def define_tables(cls, metadata):
9393
@classmethod
9494
def insert_data(cls, connection):
9595
connection.execute(
96-
text(
97-
"""
98-
insert into tab (col) values
99-
('some data 1'),
100-
('some data 2'),
101-
('some data 3')
102-
"""
103-
)
96+
cls.tables.tab.insert(),
97+
[
98+
{
99+
"col": "some data 1",
100+
},
101+
{
102+
"col": "some data 2",
103+
},
104+
{
105+
"col": "some data 3",
106+
},
107+
],
104108
)
105109

106110
def test_str_to_blob(self, connection, ops_context):

0 commit comments

Comments
 (0)