(self, connection)
| 1321 | eq_([3, 5], [r.id for r in results1]) |
| 1322 | |
| 1323 | def test_or_tsquery(self, connection): |
| 1324 | matchtable = self.tables.matchtable |
| 1325 | results2 = connection.execute( |
| 1326 | matchtable.select() |
| 1327 | .where( |
| 1328 | matchtable.c.title.bool_op("@@")( |
| 1329 | func.to_tsquery("nutshells | rubies") |
| 1330 | ) |
| 1331 | ) |
| 1332 | .order_by(matchtable.c.id) |
| 1333 | ).fetchall() |
| 1334 | eq_([3, 5], [r.id for r in results2]) |
| 1335 | |
| 1336 | def test_and_match(self, connection): |
| 1337 | matchtable = self.tables.matchtable |