Re: set_sql problem

[prev] [thread] [next] [Date index for 2004/11/05]

From: Michael
Subject: Re: set_sql problem
Date: 22:53 on 05 Nov 2004
Y00R0B0T wrote:
> Hi,
> 
> I'm having a strange little problem  with a set_sql statement and am
> wondering if someone here might be able to help.
> 
> I have a:
> 
> __PACKAGE__->set_sql(blah=>qw{
> SELECT now()::date < date_col::date 
> FROM __TABLE__
> WHERE id=?
> });

Well, first off, qw{} will give you back a list, which i'm sure you 
don't want. What I suspect is that you are using qq() instead. If this 
is the case then variable interpolation might be causing perl to try and 
find the now()::date package var.

Btw, what does '::date' mean in SQL ?

        -- 
        Michael Peters
Developer
Plus Three, LP

set_sql problem
Y00R0B0T 21:15 on 05 Nov 2004

Re: set_sql problem
Michael 22:53 on 05 Nov 2004

Re: set_sql problem
William McKee 03:11 on 06 Nov 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52