Incorrect column identifer using AS in SELECT statement on a VIEW.

Поиск
Список
Период
Сортировка
От Hayden James
Тема Incorrect column identifer using AS in SELECT statement on a VIEW.
Дата
Msg-id f9cd33b40511222320w3c5761ceo8b6044cf1c48b79@mail.gmail.com
обсуждение исходный текст
Ответы Re: Incorrect column identifer using AS in SELECT statement on a VIEW.  (Hayden James <hayden.james@gmail.com>)
Re: Incorrect column identifer using AS in SELECT statement on a VIEW.  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Incorrect column identifer using AS in SELECT statement on a VIEW.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
If I create a normal table and a normal view that queries that table I get
incorrect results when I query the view using the AS alias in the select
statement.  For example, if I create the following objects:

CREATE TABLE Test1( col1 VARCHAR(200) );
CREATE VIEW Test2 AS SELECT col1 FROM Test1 ORDER BY col1;

then I do a SELECT col1 AS something FROM Test2;  The column identifier
comes back as "col1" instead of "something".

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2065: Problem with language conversion in pg_dump
Следующее
От: Harald Armin Massa
Дата:
Сообщение: Re: strange disappearence of postgres file