Re: request for sql3 compliance for the update command - Mailing list pgsql-hackers

From Dave Cramer
Subject Re: request for sql3 compliance for the update command
Date
Msg-id 1045685881.1168.249.camel@inspiron.cramers
Whole thread Raw
In response to Re: request for sql3 compliance for the update command  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Responses Re: request for sql3 compliance for the update command  (Mike Aubury <mike@aubit.com>)
Re: request for sql3 compliance for the update command  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Patrick,

No, they support the syntax:

update table set (col1, col2, col3) = ( val1, val2, val3 )

I have a customer with a rather large application which uses this
syntax, because they were using informix. There is also a rather
interesting 4GL project called aubit which is on sourceforge. They would
also like to see this supported for the same reasons.

Dave 


On Wed, 2003-02-19 at 15:02, Patrick Welche wrote:
> > I have a large customer who is converting from informix to postgres and
> > they have made extensive use of 
> > 
> > update table set (col...) = ( val...)
> > 
> > as a first pass would it be possible to translate this in the parser to
> > 
> > update table set col=val
> > 
> > It would appear that this is SQL3 compliant
> > 
> > <set clause> ::=
> >  <update target> <equals operator> <row value designator>
> > 
> > <update target> ::=
> >  <object column>
> >  | <left paren> <object column list> <right paren>
> > 
> > 
> > or can someone think of another way?
> 
> I don't understand the original problem. What does informix give you? A
> text file full of "update table set ()=()" which you then try to feed
> into postgres? In that case, why not pass said text file through a sed or
> perl script first?
> 
> Cheers,
> 
> Patrick
-- 
Dave Cramer <dave@fastcrypt.com>
Cramer Consulting



pgsql-hackers by date:

Previous
From: Vincent van Leeuwen
Date:
Subject: Re: Hard problem with concurrency
Next
From: Neil Conway
Date:
Subject: psql regression in CVS HEAD