mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Create a new parsetree node type, TypeCast, so that transformation of
SQL cast constructs can be performed during expression transformation instead of during parsing. This allows constructs like x::numeric(9,2) and x::int2::float8 to behave as one would expect.
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
*
|
||||
* parse_coerce.h
|
||||
*
|
||||
*
|
||||
* Routines for type coercion.
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parse_coerce.h,v 1.15 1999/07/16 17:07:36 momjian Exp $
|
||||
* $Id: parse_coerce.h,v 1.16 2000/01/17 00:14:49 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -125,6 +125,8 @@ extern CATEGORY TypeCategory(Oid type);
|
||||
|
||||
extern bool can_coerce_type(int nargs, Oid *input_typeids, Oid *func_typeids);
|
||||
extern Node *coerce_type(ParseState *pstate, Node *node, Oid inputTypeId,
|
||||
Oid targetTypeId, int32 atttypmod);
|
||||
Oid targetTypeId, int32 atttypmod);
|
||||
extern Node *coerce_type_typmod(ParseState *pstate, Node *node,
|
||||
Oid targetTypeId, int32 atttypmod);
|
||||
|
||||
#endif /* PARSE_COERCE_H */
|
||||
|
||||
Reference in New Issue
Block a user