Re: Bug in SQL/MED?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in SQL/MED?
Дата
Msg-id 1131.1309906086@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in SQL/MED?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Another possibility that just occurred to me is to call the validator
> like this:
> 
>     if (OidIsValid(fdwvalidator))
>     {
>         Datum    valarg = result;
> 
>         /* pass a null options list as an empty array */
>         if (DatumGetPointer(valarg) == NULL)
>             valarg = construct_empty_array(TEXTOID);
>         OidFunctionCall2(fdwvalidator, valarg, ObjectIdGetDatum(catalogId));
>     }

> This would avoid messing with the semantics of empty options lists
> throughout foreigncmds.c, and also avoid requiring validators to deal
> with null arguments.

Not hearing any objections, I've fixed it that way.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug in SQL/MED?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Crash dumps