Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V20KD-0004Ji-WC for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jul 2013 14:45:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V20KD-0002fJ-Fi for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jul 2013 14:45:57 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V20KC-0002f6-NJ for pgsql-bugs@postgresql.org; Wed, 24 Jul 2013 14:45:56 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V20Jt-00046C-EU for pgsql-bugs@postgresql.org; Wed, 24 Jul 2013 14:45:56 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V20Jr-0000T9-Lg for pgsql-bugs@postgresql.org; Wed, 24 Jul 2013 14:45:37 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1V20Jm-0002iy-BQ for pgsql-bugs@postgresql.org; Wed, 24 Jul 2013 14:45:30 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8329: UPDATE x SET x.y = x.y + z does not work in PL/pgSQL To: pgsql-bugs@postgresql.org From: chmelarp@fit.vutbr.cz Message-Id: Date: Wed, 24 Jul 2013 14:45:30 +0000 X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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