In message <[EMAIL PROTECTED]>, "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 <[EMAIL PROTECTED]>  http://www.linuxsavvy.com/staff/jgotts

Reply via email to