[sqlalchemy] Re: Dynamic making of the where clause

2009-06-27 Thread Ashish Bhatia
Thanks for the reply but still m not able to make as i stated in the example regarding the input On Jun 26, 8:27 pm, "Michael Bayer" wrote: > Ashish Bhatia wrote: > > > :( Is it possible ! > > > On Jun 23, 3:32 pm, Ash wrote: > >> Hello, > > >> I am tryin to make the dynamic where clause using

[sqlalchemy] Re: Dynamic making of the where clause

2009-06-26 Thread Michael Bayer
Ashish Bhatia wrote: > > :( Is it possible ! > > On Jun 23, 3:32 pm, Ash wrote: >> Hello, >> >> I am tryin to make the dynamic where clause using append_whereclause. >> >> But how i can do that,  For eg : >> >> I have a==b and c in (1,2,3,4) or d like %s >> >> So i made three sqlalchemy expressio

[sqlalchemy] Re: Dynamic making of the where clause

2009-06-26 Thread Ashish Bhatia
Thanks But i get input as [['a==b'],'and', [],'and','(', ['x==y'],'or',['t==y'],')'] for a==b and id in(1,2,3,4,5) and (x==y or t==y) Now from this ;list input i want to make the where expression. I tried making all to the string but the objects (binary expression) create problem. On Jun 26,

[sqlalchemy] Re: Dynamic making of the where clause

2009-06-26 Thread King Simon-NFHD78
> On Jun 23, 3:32 pm, Ash wrote: > > Hello, > > > > I am tryin to make the dynamic where clause using > append_whereclause. > > > > But how i can do that,  For eg : > > > > I have a==b and c in (1,2,3,4) or d like %s > > > > So i made three sqlalchemy expression > > > > 1. a==b > > 2. c in (1,2,

[sqlalchemy] Re: Dynamic making of the where clause

2009-06-26 Thread Ashish Bhatia
:( Is it possible ! On Jun 23, 3:32 pm, Ash wrote: > Hello, > > I am tryin to make the dynamic where clause using append_whereclause. > > But how i can do that,  For eg : > > I have a==b and c in (1,2,3,4) or d like %s > > So i made three sqlalchemy expression > > 1. a==b > 2. c in (1,2,3,4) [ u