OSDN Git Service

Remove grotty special-case code in coerce_to_target_type() that
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 15 Mar 2004 01:13:41 +0000 (01:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 15 Mar 2004 01:13:41 +0000 (01:13 +0000)
commit89ab5c4abf48de8156b9284dda869f9ea2b2ad44
tree00b04c3c9edb91919fba7969083e71f38f2d12db
parent64fe1fd2394cfd14346cef3845529b053a1d5998
Remove grotty special-case code in coerce_to_target_type() that
implemented casts to varchar and bpchar using a cast-to-text function.
This is a holdover from before we had pg_cast; it now makes more sense
to just list these casts in pg_cast.  While at it, add pg_cast entries
for the other direction (casts from varchar/bpchar) where feasible.
src/backend/parser/parse_coerce.c
src/include/catalog/catversion.h
src/include/catalog/pg_cast.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql