pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedUpdating non atomic values
2+ messages / 2 participants
[nested] [flat]
* Updating non atomic values
@ 1999-06-08 17:27 Bob Kruger <bkruger@mindspring.com>
1999-06-12 22:36 ` Re: [SQL] Updating non atomic values Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Bob Kruger @ 1999-06-08 17:27 UTC (permalink / raw)
To: pgsql-sql; pgsql-general@postgresql.org
Is there a way to update non atomic values in Postgres?
Example:
update t3 set t3.fld[1] = 0 where t3.fld[1] = 5 ;
The above example bombs every time.
Any hints?
Bob
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] Updating non atomic values
1999-06-08 17:27 Updating non atomic values Bob Kruger <bkruger@mindspring.com>
@ 1999-06-12 22:36 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 1999-06-12 22:36 UTC (permalink / raw)
To: Bob Kruger <bkruger@mindspring.com>; +Cc: pgsql-sql; pgsql-general@postgreSQL.org
Bob Kruger <bkruger@mindspring.com> writes:
> Is there a way to update non atomic values in Postgres?
> Example:
> update t3 set t3.fld[1] = 0 where t3.fld[1] = 5 ;
> ERROR: parser: parse error at or near "="
Bob, the correct syntax is
update t3 set fld[1] = 0 where t3.fld[1] = 5 ;
UPDATE doesn't allow explicit specification of the table containing
a field to be updated; you have to write just the field name before the
"=". The parser's error message about that could stand improvement...
There are a whole bunch of bugs associated with arrays :-(, but this
behavior isn't one of them. I hope to get some time to clean up the
array code for 6.6 or 6.7.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-06-12 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-08 17:27 Updating non atomic values Bob Kruger <bkruger@mindspring.com>
1999-06-12 22:36 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox