mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Fix UNION/INTERSECT/EXCEPT so that when two inputs being merged have
same data type and same typmod, we show that typmod as the output typmod, rather than generic -1. This responds to several complaints over the past few years about UNIONs unexpectedly dropping length or precision info.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.320 2006/08/02 01:59:47 joe Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.321 2006/08/10 02:36:29 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -769,7 +769,8 @@ typedef struct SetOperationStmt
|
||||
/* Eventually add fields for CORRESPONDING spec here */
|
||||
|
||||
/* Fields derived during parse analysis: */
|
||||
List *colTypes; /* list of OIDs of output column types */
|
||||
List *colTypes; /* OID list of output column type OIDs */
|
||||
List *colTypmods; /* integer list of output column typmods */
|
||||
} SetOperationStmt;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user