Re: SQL INSERT bug with 6.5.3 and 7.0.2

Поиск
Список
Период
Сортировка
От John Gotts
Тема Re: SQL INSERT bug with 6.5.3 and 7.0.2
Дата
Msg-id 200006260132.VAA21854@ww2.tqstats.com
обсуждение исходный текст
Ответ на Re: SQL INSERT bug with 6.5.3 and 7.0.2  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-general
In message <200006252355.e5PNtKe18458@linda.lfix.co.uk>, "Oliver Elphick" write
s:

>John Gotts wrote:
>  >We're experiencing a problem with the parser with both 6.5.3 and 7.0.2.

>  >ERROR:  parser: parse error at or near "position"
>  >fmfts=# insert into contact_people (user_id,name,"position",email_address)
>v
>      >alues ('jgotts','hello',null,null);
>  >INSERT 20402 1
>  >
>  >The problem also appears with libpq.
>  >
>  >Any idea why this would occur?

>POSITION is a SQL reserved word.

>e.g.:
>SELECT POSITION ('bc' IN 'abcd');
> strpos
>--------
>      2
>(1 row)

Shouldn't the parser then also reject "position"?

John

--
John GOTTS <jgotts@linuxsavvy.com>  http://www.linuxsavvy.com/staff/jgotts

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

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SQL INSERT bug with 6.5.3 and 7.0.2