Re: Potential NULL dereference found in typecmds.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Potential NULL dereference found in typecmds.c
Дата
Msg-id 1309792308-sup-8903@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Potential NULL dereference found in typecmds.c  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Potential NULL dereference found in typecmds.c
Список pgsql-hackers
Excerpts from Heikki Linnakangas's message of lun jul 04 09:14:11 -0400 2011:
> On 04.07.2011 16:07, Peter Geoghegan wrote:

> That error message is bogus anyway:
> 
> >     if (!found)
> >         ereport(ERROR,
> >                 (errcode(ERRCODE_UNDEFINED_OBJECT),
> >                  errmsg("constraint \"%s\" of domain \"%s\" does not exist",
> >                         constrName, NameStr(con->conname))));
> 
> It passes con->conname as the name of the domain, which is just wrong. 
> It should be TypeNameToString(typename) instead. The second error 
> message that follows has the same bug.

Um, evidently this code has a problem.  I'll fix.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Problem installing odbc and .Net drivers on Windows 7 64 Ultimate
Следующее
От: Peter Eisentraut
Дата:
Сообщение: proper format for printing GetLastError()