mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add Oracle-compatible GREATEST and LEAST functions. Pavel Stehule
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.255 2005/06/09 04:18:58 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.256 2005/06/26 22:05:37 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@ -864,6 +864,16 @@ _outCoalesceExpr(StringInfo str, CoalesceExpr *node)
|
||||
WRITE_NODE_FIELD(args);
|
||||
}
|
||||
|
||||
static void
|
||||
_outMinMaxExpr(StringInfo str, MinMaxExpr *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("MINMAX");
|
||||
|
||||
WRITE_OID_FIELD(minmaxtype);
|
||||
WRITE_ENUM_FIELD(op, MinMaxOp);
|
||||
WRITE_NODE_FIELD(args);
|
||||
}
|
||||
|
||||
static void
|
||||
_outNullIfExpr(StringInfo str, NullIfExpr *node)
|
||||
{
|
||||
@ -1896,6 +1906,9 @@ _outNode(StringInfo str, void *obj)
|
||||
case T_CoalesceExpr:
|
||||
_outCoalesceExpr(str, obj);
|
||||
break;
|
||||
case T_MinMaxExpr:
|
||||
_outMinMaxExpr(str, obj);
|
||||
break;
|
||||
case T_NullIfExpr:
|
||||
_outNullIfExpr(str, obj);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user