small bug? "ERROR: exprType: Do not know how to get type for 711 node"

From: Ian Barwick <barwick(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: small bug? "ERROR: exprType: Do not know how to get type for 711 node"
Date: 2002-12-27 15:28:19
Message-ID: 200212271628.19537.barwick@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


nothing show-stopping, but something I found by accident:

test=# select version();
version
---------------------------------------------------------------------
PostgreSQL 7.3.1 on i386-unknown-freebsd4.7, compiled by GCC 2.95.4
(1 row)

test=# create table foo (bar int);
CREATE TABLE
test=# update foo set foo=1 where foo=1;
ERROR: exprType: Do not know how to get type for 711 node

Only occurs when the column name used in the WHERE clause
is the same as the table name but does not exist in the table.
I would have expected a message more like this:

test=# update foo set foo=1 ;
ERROR: Relation "foo" has no column "foo"

Ian Barwick
barwick(at)gmx(dot)net

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-12-27 17:04:04 Re: Bug #855: pg_dump crash on linux-xfs
Previous Message Mike Pechkin 2002-12-27 11:57:56 Re: Bug #856: coredump