Re: [CDBI] Using scalar functions with AbstractSearch

[prev] [thread] [next] [Date index for 2006/02/02]

From: Bill Moseley
Subject: Re: [CDBI] Using scalar functions with AbstractSearch
Date: 01:22 on 02 Feb 2006
On Thu, Feb 02, 2006 at 01:07:13AM +0100, Rhesa Rozendaal wrote:
> >Why not just use { -between => [ $start, $end ] } ?
> >
> 
> Because in this case "start_date" and "end_date" are columns in the table.
> I tried to get a search with several other criteria, and the fixed string 
> "start_date < now() and end_date > now()" or something to that effect.
> The above way was the first thing I got working in Sweet.

Do you mean this?


$ perl -MData::Dumper -MSQL::Abstract -le "print Dumper [SQL::Abstract->new->where( { foo => 'bar', start => {'<', 'now()'}, end => { '>=', 'now()'} } )]"
$VAR1 = [
          ' WHERE ( end >= ? AND foo = ? AND start < ? )',
          'now()',
          'bar',
          'now()'
        ];



        -- 
        Bill Moseley
moseley@xxxx.xxx


_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] Using scalar functions with AbstractSearch
Dylan Vanderhoof 23:37 on 01 Feb 2006

Re: [CDBI] Using scalar functions with AbstractSearch
Rhesa Rozendaal 23:50 on 01 Feb 2006

Re: [CDBI] Using scalar functions with AbstractSearch
Rhesa Rozendaal 00:07 on 02 Feb 2006

Re: [CDBI] Using scalar functions with AbstractSearch
Bill Moseley 01:22 on 02 Feb 2006

Re: [CDBI] Using scalar functions with AbstractSearch
Rhesa Rozendaal 01:41 on 02 Feb 2006

Re: [CDBI] Using scalar functions with AbstractSearch
Rhesa Rozendaal 04:54 on 02 Feb 2006

[CDBI] Re: Using scalar functions with AbstractSearch
Edward J. Sabol 05:16 on 02 Feb 2006

Re: [CDBI] Using scalar functions with AbstractSearch
Tatsuhiko Miyagawa 05:33 on 02 Feb 2006

RE: [CDBI] Using scalar functions with AbstractSearch
Dylan Vanderhoof 05:29 on 02 Feb 2006

Generated at 17:59 on 03 Feb 2006 by mariachi v0.52