Re: [PATCHES] Proposed patch for contrib/cube

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Proposed patch for contrib/cube
Дата
Msg-id 8960.1153176086@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
Joshua Reich <josh@root.net> writes:
>> if (PG_ARGISNULL(0) || PG_ARGISNULL(1))
>> {
>> ereport(ERROR,
>> (errcode(ERRCODE_ARRAY_ELEMENT_ERROR),
>> errmsg("Cannot work with NULL arrays")));
>> }

This is useless code if the function is declared STRICT, as C functions
most often are.  What you *do* need to be checking is ARR_HASNULL(),
since there isn't anything very useful you can do with null elements
within the arrays.

            regards, tom lane

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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: plPHP and plRuby
Следующее
От: Tom Lane
Дата:
Сообщение: Re: src/tools/pginclude considered harmful (was Re: