small bug? "ERROR: exprType: Do not know how to get type for 711 node" - Mailing list pgsql-bugs

From Ian Barwick
Subject small bug? "ERROR: exprType: Do not know how to get type for 711 node"
Date
Msg-id 200212271628.19537.barwick@gmx.net
Whole thread Raw
Responses Re: small bug? "ERROR: exprType: Do not know how to get type for 711 node"  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: small bug? "ERROR: exprType: Do not know how to get type for 711 node"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
nothing show-stopping, but something I found by accident:

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

  test=3D#  create table foo (bar int);
  CREATE TABLE
  test=3D# update foo set foo=3D1 where foo=3D1;
  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=3D# update foo set foo=3D1 ;=20=20=20=20=20=20=20=20=20=20=20
  ERROR:  Relation "foo" has no column "foo"


Ian Barwick
barwick@gmx.net

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #860: [7.3.x] pg_config --configure not readily usable
Next
From: Tom Lane
Date:
Subject: Re: Bug #855: pg_dump crash on linux-xfs