]> granicus.if.org Git - postgresql/commit
Improve error message for ALTER COLUMN TYPE coercion failure.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 May 2012 16:12:40 +0000 (12:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 16 May 2012 11:28:25 +0000 (07:28 -0400)
commit488c6dd1708a2c4a9e9f307001f28c05c48651bd
treed16baea4aecc29adca676952b26ab1c88d7b6c3d
parent6593c5b5dc39b179b1b7a3c947df2596af3e70c9
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.
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out