From 773f4fb4ab21ca236ad2878ddb44b6d9fc445461 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 12 Jun 2017 14:00:31 +0800 Subject: [PATCH] function is not unique if we find a candidates, ncandidate should be assigned to 1. --- lib/pg_strutil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pg_strutil.c b/lib/pg_strutil.c index ea432ae..98094ee 100644 --- a/lib/pg_strutil.c +++ b/lib/pg_strutil.c @@ -565,6 +565,8 @@ ParseFunction(const char *value, bool argistype) { find = func_select_candidate(nargs, ret.argtypes, current_candidates); + if (find) + ncandidates = 1; } } else if (nargs > 0)