mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Do type conversion to match columns in UNION clauses.
Currently force the type to match the _first_ select in the union. Move oper_select_candidate() from parse_func.c to parse_oper.c. Throw error inside of oper_inexact() if no match for binary operators. Check more carefully that types can be coerced even if there is only one candidate operator in oper_inexact(). Fix up error messages for more uniform look. Remove unused code. Fix up comments.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.1 1998/05/09 23:29:53 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.2 1998/05/29 14:00:20 thomas Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -319,7 +319,7 @@ IsPreferredType(CATEGORY category, Oid type)
|
||||
|
||||
|
||||
/* PreferredType()
|
||||
* Assign a category to the specified OID.
|
||||
* Return the preferred type OID for the specified category.
|
||||
*/
|
||||
Oid
|
||||
PreferredType(CATEGORY category, Oid type)
|
||||
|
Reference in New Issue
Block a user