Skip site navigation (1) Skip section navigation (2)

Re: syntax error during function call

From: "Aycock, Jeff R(dot)" <JEFF(dot)R(dot)AYCOCK(at)saic(dot)com>
To: "Adrian Klaver" <adrian(dot)klaver(at)gmail(dot)com>
Cc: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: syntax error during function call
Date: 2010-01-27 16:41:58
Message-ID: 65151B9A7C8C9C4284ABC85F0336DE5003972DFB@0015-its-exmb11.us.saic.com (view raw or flat)
Thread:
Lists: pgsql-general
Adrian,

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

Regards,
Jeff Aycock


-----Original Message-----
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:
> 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(dot)klaver(at)gmail(dot)com

In response to

Responses

pgsql-general by date

Next:From: Joshua TolleyDate: 2010-01-27 16:45:37
Subject: Re: query a table from one database to another
Previous:From: Tom LaneDate: 2010-01-27 16:34:45
Subject: Re: Problem after installing triggering function

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group