I tried that as well and got the same error result.
From: Adrian Klaver [mailto:adrian(dot)klaver(at)gmail(dot)com]
Sent: Wednesday, January 27, 2010 11:33 AM
To: Aycock, Jeff R.
Cc: Pavel Stehule; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] syntax error during function call
On 01/27/2010 08:27 AM, Aycock, Jeff R. wrote:
> 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.
> Jeff Aycock
In response to
pgsql-general by date
|Next:||From: Joshua Tolley||Date: 2010-01-27 16:45:37|
|Subject: Re: query a table from one database to another|
|Previous:||From: Tom Lane||Date: 2010-01-27 16:34:45|
|Subject: Re: Problem after installing triggering function |