diff options
| author | Tom Lane | 2011-11-21 04:50:27 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-11-21 04:50:27 +0000 |
| commit | b985d48779146b7ba969b0963614ad7683589bc8 (patch) | |
| tree | 5e0a9e2f5263d04012919feb6b0a4319ecbc1a12 /src/pl | |
| parent | 40d35036bb160d5724305454d41c68ab1637ee6f (diff) | |
Further code review for range types patch.
Fix some bugs in coercion logic and pg_dump; more comment cleanup;
minor cosmetic improvements.
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_comp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pl/plpgsql/src/pl_comp.c b/src/pl/plpgsql/src/pl_comp.c index 04d8b532c3..275cad7b5c 100644 --- a/src/pl/plpgsql/src/pl_comp.c +++ b/src/pl/plpgsql/src/pl_comp.c @@ -2378,7 +2378,7 @@ compute_function_hashkey(FunctionCallInfo fcinfo, /* * This is the same as the standard resolve_polymorphic_argtypes() function, * but with a special case for validation: assume that polymorphic arguments - * are integer, integer-range or integer-array. Also, we go ahead and report + * are integer, integer-array or integer-range. Also, we go ahead and report * the error if we can't resolve the types. */ static void @@ -2412,12 +2412,12 @@ plpgsql_resolve_polymorphic_argtypes(int numargs, case ANYENUMOID: /* XXX dubious */ argtypes[i] = INT4OID; break; - case ANYRANGEOID: - argtypes[i] = INT4RANGEOID; - break; case ANYARRAYOID: argtypes[i] = INT4ARRAYOID; break; + case ANYRANGEOID: + argtypes[i] = INT4RANGEOID; + break; default: break; } |
