- 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:
Mike Bayer 2016-06-23 22:19:55 -04:00
parent 9486500dfb
commit 3ab6f88705
1 changed files with 5 additions and 1 deletions

View File

@ -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",