| От | Rikard Pavelic |
|---|---|
| Тема | problems selecting from altered table |
| Дата | |
| Msg-id | 4677DF77.9060303@zg.htnet.hr обсуждение исходный текст |
| Ответы |
Re: problems selecting from altered table
Re: problems selecting from altered table |
| Список | pgsql-general |
Hi!
I noticed that some of the functions I created don't work anymore.
So I tired to reproduce the problem and this is what I came up with.
create table test(
id serial primary key,
tekst text);
insert into test values(1,'1'),(2,'2');
create function sel_test() returns test as
$$
declare red record;
begin
select * into red from test limit 1;
return red;
end
$$ language plpgsql;
select * from sel_test();
This all works ok, but if I do
alter table test drop column tekst;
then select * from sel_test(); doesn't work anymore
Even if I recreate the function.
Is this a known problem?
Regards,
Rikard
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера