Re: Problem with function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with function
Дата
Msg-id 10444.1075600422@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with function  ("Frank Millman" <frank@chagford.com>)
Ответы Re: Problem with function  (Rich Hall <rhall@micropat.com>)
Список pgsql-general
"Frank Millman" <frank@chagford.com> writes:
>       uom := (select uom from prodclass where code = prod_class) ;
        ^^^            ^^^

It's a bad idea to use plpgsql variable names that match fields of your
tables.  In this case, since the variable uom starts out NULL, the
select effectively reads "(select NULL from ...)".

            regards, tom lane

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

Предыдущее
От: Culley Harrelson
Дата:
Сообщение: Re: Unicode vs SQL_ASCII DBs
Следующее
От: Eric Ridge
Дата:
Сообщение: Re: Very slow query - why?