diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-04-24 09:20:53 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-04-24 09:20:53 -0400 |
commit | 3ce7f18e92e9687308ed5d9e516eb7e2f0decadb (patch) | |
tree | f4a22b79b2e5bd859e1b2c9689da043fa85e11c0 /doc/src | |
parent | e4f06b70c9ac1473591d705990a8b601915ce4bd (diff) | |
download | postgresql-3ce7f18e92e9687308ed5d9e516eb7e2f0decadb.tar.gz postgresql-3ce7f18e92e9687308ed5d9e516eb7e2f0decadb.zip |
Casts to or from a domain type are ignored; warn and document.
Prohibiting this outright would break dumps taken from older versions
that contain such casts, which would create far more pain than is
justified here.
Per report by Jaime Casanova and subsequent discussion.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/create_cast.sgml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/create_cast.sgml b/doc/src/sgml/ref/create_cast.sgml index 964cbf4d41a..29ea298a468 100644 --- a/doc/src/sgml/ref/create_cast.sgml +++ b/doc/src/sgml/ref/create_cast.sgml @@ -288,6 +288,11 @@ SELECT CAST ( 2 AS numeric ) + 4.0; convert between data types and a second to apply the modifier. </para> + <para> + A cast to or from a domain type currently has no effect. Casting + to or from a domain uses the casts associated with its underlying type. + </para> + </refsect1> <refsect1 id="sql-createcast-notes"> |