Re: the case for machine-readable error fields

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: the case for machine-readable error fields
Дата
Msg-id 20090804232937.GT6494@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: the case for machine-readable error fields  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark wrote:

> So an alternate proposal is to add a field in the error message which
> contains the untranslated string. That would let applications always
> look at the untranslated string for parsing and always use the
> translated string for user displays.

That's an interesting idea, but you also have to consider other stuff
not related to translation, like schemas of the tables in question.
Someone requested some time ago to schema-qualify the table name (or a
constraint name, I don't recall offhand) in an error message, but this
idea was shot down because if that person really wanted that info, what
he should be looking at is including extra info in machine-readable
format into errors instead of a kluge like that.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: the case for machine-readable error fields
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: the case for machine-readable error fields