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

From Oliver Elphick
Subject Re: SQL INSERT bug with 6.5.3 and 7.0.2
Date
Msg-id 200006252355.e5PNtKe18458@linda.lfix.co.uk
Whole thread Raw
In response to SQL INSERT bug with 6.5.3 and 7.0.2  (John Gotts <jgotts@ww2.tqstats.com>)
Responses Re: SQL INSERT bug with 6.5.3 and 7.0.2
List 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.Elphick@lfix.co.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



pgsql-general by date:

Previous
From: John Gotts
Date:
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Next
From: John Gotts
Date:
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2