parser oddity (t.count)

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема parser oddity (t.count)
Дата
Msg-id 392D4963.74C9E642@austin.rr.com
обсуждение исходный текст
Ответы Re: parser oddity (t.count)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Here's what I thought to be an odd result from the 7.0beta3 parser...

create table foo (id serial, h_count integer);
insert into foo (h_count) values (10);
create table temp_foo as select * from foo;    
drop table foo;
drop sequence foo_id_seq;
create table foo (id serial, h_count integer);
insert into foo (id, h_count) select t.id, t.count from temp_foo t;

ERROR:  Attribute t.id must be GROUPed or used in an aggregate function

I mislabeled the 't.h_count' column in my INSERT statement as 't.count',
and what I found strange was that the parser evidently thinks t.count is
an aggregate.  Is 't.count' valid use/syntax for an aggregate?

Regards,
Ed Loehr


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

Предыдущее
От: Ed Loehr
Дата:
Сообщение: Timezone discrepancies
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: Berkeley DB...