diff --git a/src/dsql/metd.epp b/src/dsql/metd.epp index 4e406a8bad..994ae3690a 100644 --- a/src/dsql/metd.epp +++ b/src/dsql/metd.epp @@ -1074,6 +1074,9 @@ dsql_udf* METD_get_function(dsql_req* request, const dsql_str* name) ptr = userFunc->udf_arguments->nod_arg + arg_count; while (stack) { *--ptr = (DSQL_NOD) LLS_POP (&stack); + // dimitr: adjust the UDF arguments for CSTRING + if ((*ptr)->nod_desc.dsc_dtype == dtype_cstring) + (*ptr)->nod_desc.dsc_dtype = dtype_text; }