Re: [RDBO] using functions

2007-04-15 Thread Jonathan Vanasco
On Apr 15, 2007, at 3:50 PM, John Siracusa wrote: > On 4/14/07 1:16 AM, Jonathan Vanasco wrote: >> is there a way to get Rose to search based on functions? >> >> ie: >> bad >> SELECT * FROM useraccount WHERE email = ? >> good >> SELECT * FROM useraccount WHERE lower(email) = lower(?) > > See this

Re: [RDBO] using functions

2007-04-15 Thread John Siracusa
On 4/14/07 1:16 AM, Jonathan Vanasco wrote: > is there a way to get Rose to search based on functions? > > ie: > bad > SELECT * FROM useraccount WHERE email = ? > good > SELECT * FROM useraccount WHERE lower(email) = lower(?) See this thread for some earlier discussion on this topic: http://www.

Re: [RDBO] using functions

2007-04-14 Thread Bill Moseley
On Sat, Apr 14, 2007 at 01:16:10AM -0400, Jonathan Vanasco wrote: > is there a way to get Rose to search based on functions? > > ie: > bad > SELECT * FROM useraccount WHERE email = ? > good > SELECT * FROM useraccount WHERE lower(email) = lower(?) How about

[RDBO] using functions

2007-04-13 Thread Jonathan Vanasco
is there a way to get Rose to search based on functions? ie: bad SELECT * FROM useraccount WHERE email = ? good SELECT * FROM useraccount WHERE lower(email) = lower(?) the second query will be optimized by the postgres planner to search on this in