pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua Farray <farray@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5850: UPDATE statement fails when using aliases
Date: Wed, 26 Jan 2011 18:05:40 GMT
Message-ID: <201101261805.p0QI5eWP016518@wwwmaster.postgresql.org> (raw)


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 = '';
>             ^



view thread (2+ messages)  latest in thread

Message-ID: <201101261805.p0QI5eWP016518@wwwmaster.postgresql.org>
Permalink:  ../201101261805.p0QI5eWP016518@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201101261805.p0QI5eWP016518@wwwmaster.postgresql.org

 · 

reply

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: farray@gmail.com
  Subject: Re: BUG #5850: UPDATE statement fails when using aliases
  In-Reply-To: <201101261805.p0QI5eWP016518@wwwmaster.postgresql.org>
  References: <201101261805.p0QI5eWP016518@wwwmaster.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