Inaccurate comment, for family-1 polymorphic iso-8859-1 type arguments

Поиск
Список
Период
Сортировка
От Himanshu Upadhyaya
Тема Inaccurate comment, for family-1 polymorphic iso-8859-1 type arguments
Дата
Msg-id CAPF61jBUg9XoMPNuLpoZ+h6UZ2VxKdNt3rQL1xw1GOBwjWzAXQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Inaccurate comment, for family-1 polymorphic iso-8859-1 type arguments
Список pgsql-hackers
Hi Hackers,

I observed that we have inaccurate comment in enforce_generic_type_consistency.

 if (!OidIsValid(elem_typeid))
                {
                        if (allow_poly)
                        {
                                elem_typeid = ANYELEMENTOID;
                                array_typeid = ANYARRAYOID;
                                range_typeid = ANYRANGEOID;
                        }
                        else
                        {
                                /*
                                 * Only way to get here is if all the polymorphic args have
                                 * UNKNOWN inputs
                                 */
                                ereport(ERROR,
                              ...............
                         }
........
}
We reach the error condition even if there is any "anycompatible" parameter is present (and that is of some known type say int32).
I think developer intend to report error if "we have all the family-1 polymorphic arguments as UNKNOWN".

Thoughts?

Please find attached the patch to fix this typo.

Thanks,
Himanshu
Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: A micro-optimisation for walkdir()
Следующее
От: Surafel Temesgen
Дата:
Сообщение: Re: proposal: possibility to read dumped table's name from file