Re: SQL INSERT bug with 6.5.3 and 7.0.2 - Mailing list pgsql-general

From John Gotts
Subject Re: SQL INSERT bug with 6.5.3 and 7.0.2
Date
Msg-id 200006260132.VAA21854@ww2.tqstats.com
Whole thread Raw
In response to Re: SQL INSERT bug with 6.5.3 and 7.0.2  ("Oliver Elphick" <olly@lfix.co.uk>)
List 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 by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Next
From: Tom Lane
Date:
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2