Обсуждение: pgScript error when relation name contains ")" symbol

Поиск
Список
Период
Сортировка

pgScript error when relation name contains ")" symbol

От
"Vjacheslav A."
Дата:
Hi,<br />I have pgScript error when relation name contains ")" symbol,<br />try this example (just execute by F6 -
pgScript):<br/><br />CREATE TABLE "table1)d"<br />(<br />  code character varying(10)<br />)<br />WITH (<br />  
OIDS=FALSE<br/>);<br /><br />(its executed normally by F5).<br />Windows XP rus, PGAdmin 1.14.3, PostgreSQL 9.1.4.<br
/><br/>Thank you.<br /><br /> 

Re: pgScript error when relation name contains ")" symbol

От
Darren Duncan
Дата:
Maybe "pgScript" is something special.

Normally I execute my multi-statement SQL script files using the "Execute Query" 
plain green arrow, which works fine.

I recalled that when I tried the "Execute pgScript" button using the exact same 
SQL, it gave errors.

-- Darren Duncan

Vjacheslav A. wrote:
> Hi,
> I have pgScript error when relation name contains ")" symbol,
> try this example (just execute by F6 - pgScript):
> 
> CREATE TABLE "table1)d"
> (
>   code character varying(10)
> )
> WITH (
>   OIDS=FALSE
> );
> 
> (its executed normally by F5).
> Windows XP rus, PGAdmin 1.14.3, PostgreSQL 9.1.4.
> 
> Thank you.
> 



Re: pgScript error when relation name contains ")" symbol

От
Guillaume Lelarge
Дата:
On Sun, 2012-07-08 at 19:18 +0400, Vjacheslav A. wrote:
> Hi,
> I have pgScript error when relation name contains ")" symbol,
> try this example (just execute by F6 - pgScript):
> 
> CREATE TABLE "table1)d"
> (
>   code character varying(10)
> )
> WITH (
>   OIDS=FALSE
> );
> 
> (its executed normally by F5).
> Windows XP rus, PGAdmin 1.14.3, PostgreSQL 9.1.4.
> 
> Thank you.

You're right, this is a bug. I created a ticket to work on this later.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com