Re: pgsql: Allow empty target list in SELECT.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Allow empty target list in SELECT.
Дата
Msg-id 27441.1414007839@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Allow empty target list in SELECT.  (Thom Brown <thom@linux.com>)
Ответы Re: pgsql: Allow empty target list in SELECT.  (Thom Brown <thom@linux.com>)
Список pgsql-committers
Thom Brown <thom@linux.com> writes:
> On 15 December 2013 02:23, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Allow empty target list in SELECT.

> This commit introduces another bug:

> # create table colours (id serial, name text, visible boolean);
> CREATE TABLE

> # insert into colours (name, visible) values
> ('blue',true),('yellow',true),('ultraviolet',false),('green',true),('infrared',false);
> INSERT 0 5

> # select into colours2 from colours;
> SELECT 5

> # select * from colours2;
> (No rows)

That's just a pre-existing issue in psql that it's not terribly smart
about displaying zero-column rows.  But what psql are you using?
I see

regression=# select * from colours2;
--
(5 rows)


            regards, tom lane


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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: pgsql: Allow empty target list in SELECT.
Следующее
От: Thom Brown
Дата:
Сообщение: Re: pgsql: Allow empty target list in SELECT.