8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00

Fixed problem with parameters used as UDF arguments with type of CSTRING.

This commit is contained in:
dimitr 2003-12-06 18:13:57 +00:00
parent 97066f795c
commit 1c1d834871

View File

@ -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;
}