Re: SQL INSERT bug with 6.5.3 and 7.0.2

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: jgotts(at)linuxsavvy(dot)com
Cc: pgsql-general(at)postgresql(dot)org, olly(at)linda(dot)lfix(dot)co(dot)uk
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Date: 2000-06-25 23:55:20
Message-ID: 200006252355.e5PNtKe18458@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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)

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Honour thy father and mother; which is the first
commandment with promise; That it may be well with
thee, and thou mayest live long on the earth."
Ephesians 6:2,3

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Gotts 2000-06-25 23:57:55 Re: SQL INSERT bug with 6.5.3 and 7.0.2
Previous Message John Gotts 2000-06-25 21:55:40 SQL INSERT bug with 6.5.3 and 7.0.2