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

From Aycock, Jeff R.
Subject Re: syntax error during function call
Date
Msg-id 65151B9A7C8C9C4284ABC85F0336DE5003972DFB@0015-its-exmb11.us.saic.com
Whole thread Raw
In response to Re: syntax error during function call  (Adrian Klaver <adrian.klaver@gmail.com>)
Responses Re: syntax error during function call
List pgsql-general
Adrian,

I tried that as well and got the same error result.

Regards,
Jeff Aycock


-----Original Message-----
From: Adrian Klaver [mailto:adrian.klaver@gmail.com]
Sent: Wednesday, January 27, 2010 11:33 AM
To: Aycock, Jeff R.
Cc: Pavel Stehule; pgsql-general@postgresql.org
Subject: Re: [GENERAL] syntax error during function call

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: Tom Lane
Date:
Subject: Re: Problem after installing triggering function
Next
From: Joshua Tolley
Date:
Subject: Re: query a table from one database to another