From: chmelarp@fit.vutbr.cz
To: pgsql-bugs@postgresql.org
Subject: BUG #8329: UPDATE x SET x.y = x.y + z does not work in PL/pgSQL
Date: Wed, 24 Jul 2013 14:45:30 +0000
Message-ID: <E1V20Jm-0002iy-BQ@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8329
Logged by: Petr
Email address: chmelarp@fit.vutbr.cz
PostgreSQL version: 9.2.4
Operating system: Fedora x64
Description:
Hi there,
we have an issue - if I run a query from a console, it runs OK. When it is
run using EXECUTE in an PL/pgSQL function, it sets NULL. The simplest
version of the query is like this:
UPDATE x
SET x.y = x.y + z.
FROM (SELECT z) as Z
WHERE ... ;
If I don't use the "+" in the SET command, it works OK. The whle query is
quite complex, but OK in a console. If you need the query an tables..., mail
me, please. I can't make it public.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: chmelarp@fit.vutbr.cz
Subject: Re: BUG #8329: UPDATE x SET x.y = x.y + z does not work in PL/pgSQL
In-Reply-To: <E1V20Jm-0002iy-BQ@wrigleys.postgresql.org>
References: <E1V20Jm-0002iy-BQ@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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