Re: Fix for tablename in targetlist

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Fix for tablename in targetlist
Date: 2001-05-19 08:06:37
Message-ID: Pine.LNX.4.30.0105191005500.758-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:

> This patch fixes the problem by generating an error in the parser:
>
> test=> select pg_class from pg_class;
> ERROR: You can't use a relation alone in a target list.

Maybe it's the parser that's getting it wrong. What if pg_class has a
column called pg_class?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Klaus Reger 2001-05-19 08:20:36 Re: Grammar-problems with pl/pgsql in gram.y
Previous Message Thomas Lockhart 2001-05-19 06:21:18 Re: Problems with avg on interval data type