Re: [SQL] polygon problem

Поиск
Список
Период
Сортировка
От Gene Selkov Jr.
Тема Re: [SQL] polygon problem
Дата
Msg-id 199912120041.SAA11940@mail.xnet.com
обсуждение исходный текст
Ответ на polygon problem  (Brent Wood <brent.wood@blazemail.com>)
Список pgsql-sql
According to Brent Wood:
> 
>     insert into table1 values ('poly1',((0,0),(0,1),(1,0)),'s');
> This fails with the msg:
> ERROR:   parser: parser error at or near ","
> 
> As I read the docs on polygon types, this should work.

It shouldn't. The SQL parser can't read the VALUES() clause because
you omitted the quotes around the polygon string. It had to be:
    insert into table1 values ('poly1', '((0,0),(0,1),(1,0))', 's');

or
    insert into table1 values ('poly1', '(0,0,0,1,1,0)', 's');


--Gene


В списке pgsql-sql по дате отправления:

Предыдущее
От: Brent Wood
Дата:
Сообщение: polygon problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] polygon problem