Add column name to error message?

Поиск
Список
Период
Сортировка
От Edson Richter
Тема Add column name to error message?
Дата
Msg-id BLU0-SMTP248EBEB9DE2CF9206D99275CF7C0@phx.gbl
обсуждение исходный текст
Список pgsql-general
Hi!

I would like to have a improved error message with column name. Today (9.2.3), I receive the following error:

"ERROR: value too long for type character varying(20)"

Why not this more intuitive error message:

"ERROR: value too long for type character varying(20) at column XYZ"

Since my table can have more than one "character varying(20)" inside, would be useful to know which one has throw the error...
Is there any reasoning (security, perhaps) for hiding column name in the error?

Thanks,
--

Edson Carlos Ericksson Richter
Sistemas para Bibliotecas, Escolinhas Infantis
Projetos sob medida para sua empresa
Celular:(51) 9318-9766
(51) 8585-0796
"A mente que se abre a uma nova ideia jamais voltará ao seu tamanho original"
- Albert Einstein

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Optimizing CartoDB's JenksBins function
Следующее
От: Edson Richter
Дата:
Сообщение: Re: Add column name to error message?