diff options
| author | Tom Lane | 2005-06-26 22:05:42 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-06-26 22:05:42 +0000 |
| commit | 943b396245bd699a66c894c5e11303b3ef93ac7b (patch) | |
| tree | a08720e308259beb253e4b4b21f2f08e391a4d9f /src/pl | |
| parent | d395aecffad7cc6bd043e2d81a1bed5b3fe2f5fa (diff) | |
Add Oracle-compatible GREATEST and LEAST functions. Pavel Stehule
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index 946a5b1c82a..356210ccb36 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.148 2005/06/22 07:28:47 neilc Exp $ + * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.149 2005/06/26 22:05:42 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -4296,6 +4296,16 @@ exec_simple_check_node(Node *node) return TRUE; } + case T_MinMaxExpr: + { + MinMaxExpr *expr = (MinMaxExpr *) node; + + if (!exec_simple_check_node((Node *) expr->args)) + return FALSE; + + return TRUE; + } + case T_NullIfExpr: { NullIfExpr *expr = (NullIfExpr *) node; |
