Skip site navigation (1) Skip section navigation (2)

Re: SQL INSERT bug with 6.5.3 and 7.0.2

From: John Gotts <jgotts(at)ww2(dot)tqstats(dot)com>
To: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Date: 2000-06-26 01:32:34
Message-ID: 200006260132.VAA21854@ww2.tqstats.com (view raw or flat)
Thread:
Lists: pgsql-general
In message <200006252355(dot)e5PNtKe18458(at)linda(dot)lfix(dot)co(dot)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(at)linuxsavvy(dot)com>  http://www.linuxsavvy.com/staff/jgotts

Responses

pgsql-general by date

Next:From: Tom LaneDate: 2000-06-26 03:21:16
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Previous:From: John GottsDate: 2000-06-25 23:57:55
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group