Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 004091337B61 for ; Wed, 26 Jan 2011 14:05:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 53205-08 for ; Wed, 26 Jan 2011 18:05:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id DEC281337B53 for ; Wed, 26 Jan 2011 14:05:40 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p0QI5efj016519 for ; Wed, 26 Jan 2011 18:05:40 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p0QI5eWP016518; Wed, 26 Jan 2011 18:05:40 GMT (envelope-from www) Date: Wed, 26 Jan 2011 18:05:40 GMT Message-Id: <201101261805.p0QI5eWP016518@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5850: UPDATE statement fails when using aliases From: "Joshua Farray" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201101/210 X-Sequence-Number: 29232 The following bug has been logged online: Bug reference: 5850 Logged by: Joshua Farray Email address: farray@gmail.com PostgreSQL version: 9.0.2 Operating system: Win7 x64 Description: UPDATE statement fails when using aliases Details: Make a table: > CREATE TABLE foos > ( > foo_id serial, > foo_text varchar(255) > ); Update the table using an alias: > UPDATE foos AS t > SET t.foo_text = ''; Expected output: > UPDATE 0 Actual output: > ERROR: column "t" of relation "foos" does not exist > LINE 2: SET t.foo_text = ''; > ^