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

From Aycock, Jeff R.
Subject Re: syntax error during function call
Date
Msg-id 65151B9A7C8C9C4284ABC85F0336DE5003972DB4@0015-its-exmb11.us.saic.com
Whole thread Raw
In response to Re: syntax error during function call  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: syntax error during function call
Re: syntax error during function call
List pgsql-general
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.

Thanks for the suggestion, however.

Regards,
Jeff Aycock


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

>
> ERROR:  syntax error at or near "("
>
> LINE 1: SELECT *, $1, now() INTO schema_1.(table_A) FROM schema_2.(table_A)
> where created_dt between $2 and $3;
>
>

schema_1.(table_A) is nonsense. have to be "schema_1"."table_A"

regards
Pavel Stehule

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: syntax error during function call
Next
From: Adrian Klaver
Date:
Subject: Re: syntax error during function call