mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-26 10:32:33 -04:00
- fix array test that was essentially taking a weird guess
at the primary key of a row based on other tests invoking around it
This commit is contained in:
@@ -795,13 +795,13 @@ class ArrayTest(fixtures.TablesTest, AssertsExecutionResults):
|
||||
|
||||
def test_array_comparison(self):
|
||||
arrtable = self.tables.arrtable
|
||||
arrtable.insert().execute(intarr=[1, 2, 3],
|
||||
arrtable.insert().execute(id=5, intarr=[1, 2, 3],
|
||||
strarr=[util.u('abc'), util.u('def')])
|
||||
results = select([arrtable.c.id]).\
|
||||
where(arrtable.c.intarr < [4, 5, 6]).execute()\
|
||||
.fetchall()
|
||||
eq_(len(results), 1)
|
||||
eq_(results[0][0], 3)
|
||||
eq_(results[0][0], 5)
|
||||
|
||||
def test_array_subtype_resultprocessor(self):
|
||||
arrtable = self.tables.arrtable
|
||||
|
||||
Reference in New Issue
Block a user