Re: syntax error during function call - Mailing list pgsql-general

From Adrian Klaver
Subject Re: syntax error during function call
Date
Msg-id 4B606AC3.7000706@gmail.com
Whole thread Raw
In response to Re: syntax error during function call  ("Aycock, Jeff R." <JEFF.R.AYCOCK@saic.com>)
Responses Re: syntax error during function call  ("Aycock, Jeff R." <JEFF.R.AYCOCK@saic.com>)
List pgsql-general
On 01/27/2010 08:27 AM, Aycock, Jeff R. wrote:
> Pavel,
>
> Per your suggestion I modified one line below BEGIN to look like this:
>
> EXECUTE 'SELECT *, $1, now() INTO "schema_1".'||"whoami"||' FROM
> "schema_2".'||"whoami"||' where created_dt between $2 and $3;'
>
>
> However, it is still giving me the same syntax error as before.  I must be missing something here though.

On a hunch try CURRENT_TIMESTAMP instead of now().

>
> Thanks for the suggestion, however.
>
> Regards,
> Jeff Aycock
>
>


--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: "Aycock, Jeff R."
Date:
Subject: Re: syntax error during function call
Next
From: Andreas Kretschmer
Date:
Subject: Re: syntax error during function call