pgsql: Improve error message for ALTER COLUMN TYPE coercion failure.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Improve error message for ALTER COLUMN TYPE coercion failure.
Дата
Msg-id E1SUcPT-00087V-JX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve error message for ALTER COLUMN TYPE coercion failure.

Per recent discussion, the error message for this was actually a trifle
inaccurate, since it said "cannot be cast" which might be incorrect.
Adjust that wording, and add a HINT suggesting that a USING clause might
be needed.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/488c6dd1708a2c4a9e9f307001f28c05c48651bd

Modified Files
--------------
src/backend/commands/tablecmds.c          |    7 ++++---
src/test/regress/expected/alter_table.out |    8 +++++---
2 files changed, 9 insertions(+), 6 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix bug in freespace calculation in heap_multi_insert().
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix bug in to_tsquery().