postgresql/src/test
Tom Lane 543d22fc74 Prevent invoking I/O conversion casts via functional/attribute notation.
PG 8.4 added a built-in feature for casting pretty much any data type to
string types (text, varchar, etc).  We allowed this to work in any of the
historically-allowed syntaxes: CAST(x AS text), x::text, text(x), or
x.text.  However, multiple complaints have shown that it's too easy to
invoke such casts unintentionally in the latter two styles, particularly
field selection.  To cure the problem with the narrowest possible change
of behavior, disallow use of I/O conversion casts from composite types to
string types via functional/attribute syntax.  The new functionality is
still available via cast syntax.

In passing, document the equivalence of functional and attribute syntax
in a more visible place.
2010-11-07 13:03:19 -05:00
..
examples Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
locale Add missing newlines at end of files 2010-10-26 20:11:43 +03:00
mb Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
performance Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
regress Prevent invoking I/O conversion casts via functional/attribute notation. 2010-11-07 13:03:19 -05:00
thread Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00