mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained in:
@ -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">
|
||||
|
Reference in New Issue
Block a user