summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorMarko Kreen2011-10-12 09:48:56 +0000
committerMarko Kreen2011-10-12 09:48:56 +0000
commit76724dd2540f63ece6fcb39609bb1fb42c0b22b1 (patch)
tree0fc3fea75b120676349d1deef4800b46847f28b4 /src/execute.c
parentea1755a1aeb8b3e6d7c6860ff5ab6ddee7a25483 (diff)
SPLIT: fix elem type info leak
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/execute.c b/src/execute.c
index 00cd6ca..41ceec7 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -853,11 +853,11 @@ tag_hash_partitions(ProxyFunction *func, FunctionCallInfo fcinfo, int tag,
* and determine the element type information.
*/
static DatumArray *
-make_datum_array(ProxyFunction *func, ArrayType *v, Oid elem_type)
+make_datum_array(ProxyFunction *func, ArrayType *v, ProxyType *array_type)
{
DatumArray *da = palloc0(sizeof(*da));
- da->type = plproxy_find_type_info(func, elem_type, true);
+ da->type = plproxy_get_elem_type(func, array_type, true);
if (v)
deconstruct_array(v,
@@ -948,7 +948,7 @@ prepare_and_tag_partitions(ProxyFunction *func, FunctionCallInfo fcinfo)
plproxy_error(func, "split multi-dimensional arrays are not supported");
}
- arrays_to_split[i] = make_datum_array(func, v, func->arg_types[i]->elem_type);
+ arrays_to_split[i] = make_datum_array(func, v, func->arg_types[i]);
/* Check that the element counts match */
if (split_array_len < 0)