aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_oper.c
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-12-08 06:19:15 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-12-08 06:19:15 +0000
commit53b476798a8ad8ba68041b599f517f971af198ed (patch)
tree0ea9ff55c3c725235992bbcd5586a78685b5870f /src/backend/parser/parse_oper.c
parent9470ab03c93ce4959c86cf1b61feac49a7901099 (diff)
downloadpostgresql-53b476798a8ad8ba68041b599f517f971af198ed.tar.gz
postgresql-53b476798a8ad8ba68041b599f517f971af198ed.zip
Define routines and catalog entries for string min()/max() functions.
Extend new type coersion techniques to aggregates. Clean up a few elog() messages.
Diffstat (limited to 'src/backend/parser/parse_oper.c')
-rw-r--r--src/backend/parser/parse_oper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/parser/parse_oper.c b/src/backend/parser/parse_oper.c
index f9e13f16042..6ee4d216099 100644
--- a/src/backend/parser/parse_oper.c
+++ b/src/backend/parser/parse_oper.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.21 1998/11/27 19:52:14 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.22 1998/12/08 06:18:57 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -210,6 +210,7 @@ oper_select_candidate(int nargs,
nmatch++;
}
+ /* take this one as the best choice so far? */
if ((nmatch > nbestMatch) || (last_candidate == NULL))
{
nbestMatch = nmatch;
@@ -217,12 +218,14 @@ oper_select_candidate(int nargs,
last_candidate = current_candidate;
ncandidates = 1;
}
+ /* no worse than the last choice, so keep this one too? */
else if (nmatch == nbestMatch)
{
last_candidate->next = current_candidate;
last_candidate = current_candidate;
ncandidates++;
}
+ /* otherwise, don't bother keeping this one... */
else
{
last_candidate->next = NULL;