Re: [sqlalchemy] complex in clause

2010-05-27 Thread Glauco Uri
Michael Bayer ha scritto: search the docs for tuple_. wonderful! thank you Gla -- Glauco Uri Prometeia SpA Via G. Marconi, 43 - 40122 Bologna Via Gonzaga, 7 - 20123 Milano Via Tirso, 26 - 00198 Roma Italia e-mail : glauco@prometeia.it phone : +39 051 6480911

[sqlalchemy] complex in clause

2010-05-26 Thread Glauco Uri
What is the best practice for this case? select * from my_tbl where (a,b) in ((1,1),(2,2)) It seems to me that in clause is a column attribute so i don't figure how to sqlalchemyfy this where condition Thank you in advance Gla -- Glauco Uri Prometeia SpA Via G. Marconi, 43 - 40122

Re: [sqlalchemy] complex in clause

2010-05-26 Thread Michael Bayer
search the docs for tuple_. On May 26, 2010, at 10:35 AM, Glauco Uri wrote: What is the best practice for this case? select * from my_tbl where (a,b) in ((1,1),(2,2)) It seems to me that in clause is a column attribute so i don't figure how to sqlalchemyfy this where condition