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

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема small bug? "ERROR: exprType: Do not know how to get type for 711 node"
Дата
Msg-id 200212271628.19537.barwick@gmx.net
обсуждение исходный текст
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #860: [7.3.x] pg_config --configure not readily usable
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #855: pg_dump crash on linux-xfs