[sqlalchemy] Re: Can't find anything equivalent to bit_or in PostgreSQL

2020-06-16 Thread Balukrishnan
Thank you very much. I tried that and it is working perfectly for me. On Wednesday, June 17, 2020 at 3:12:04 AM UTC+5:30, Jonathan Vanasco wrote: > > If this just needs this to be rendered for PostgreSQL, you can use the > `func` generator: > > >

[sqlalchemy] Re: Can't find anything equivalent to bit_or in PostgreSQL

2020-06-16 Thread 'Jonathan Vanasco' via sqlalchemy
If this just needs this to be rendered for PostgreSQL, you can use the `func` generator: https://docs.sqlalchemy.org/en/13/core/sqlelement.html#sqlalchemy.sql.expression.func from sqlalchemy.sql.expression import func query = session.query(Foo).filter(func.bit_or(Foo.cola, Foo.colb)...