Problem specifying limit in select inside insert.

Поиск
Список
Период
Сортировка
От Denis Perchine
Тема Problem specifying limit in select inside insert.
Дата
Msg-id 00101014022218.02713@dyp.perchine.com
обсуждение исходный текст
Список pgsql-hackers
Hello,

I have quite strange behavior of the following SQL:

insert into address (cid,email) select distinct '49'::int,member.email from
member imit 1 ;

It should insert just 1 record.
But it insert all recodrs which will be selected by subselect...
What's wrong with this SQL? Or this is a bug? If it is a bug...
How to fix it (patch, workaround...)

Thanks in advance.

--
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Re: My new job
Следующее
От: Michael Meskes
Дата:
Сообщение: Trigger question