- adjust boolean no_ck test to not use Boolean type
to insert a non 0/1 integer; SQLA 1.1 now coerces it to 1/0 Change-Id: I4447547b98a5178c7a1185d5788bfb58ae8c23ee
This commit is contained in:
parent
9486500dfb
commit
3ab6f88705
|
@ -1268,7 +1268,11 @@ class BatchRoundTripTest(TestBase):
|
|||
bar.create(self.conn)
|
||||
self.conn.execute(bar.insert(), {'id': 1, 'flag': True})
|
||||
self.conn.execute(bar.insert(), {'id': 2, 'flag': False})
|
||||
self.conn.execute(bar.insert(), {'id': 3, 'flag': 5})
|
||||
self.conn.execute(
|
||||
# override Boolean type which as of 1.1 coerces numerics
|
||||
# to 1/0
|
||||
text("insert into bar (id, flag) values (:id, :flag)"),
|
||||
{'id': 3, 'flag': 5})
|
||||
|
||||
with self.op.batch_alter_table(
|
||||
"bar",
|
||||
|
|
Loading…
Reference in New Issue