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

Fixed bug with lost charset/collation in local variables,

reported by Eugene Kilin.
This commit is contained in:
dimitr 2005-06-08 13:42:59 +00:00
parent d5d631859c
commit 00e0976294

View File

@ -5876,9 +5876,11 @@ static void put_local_variables(dsql_req* request, dsql_nod* parameters,
dsql_var* variable = (dsql_var*) var_node->nod_arg[e_var_variable];
put_local_variable(request, variable, parameter);
// fld_length is calculated inside put_local_variable(),
// so we copy here the length
var_node->nod_desc.dsc_length = field->fld_length;
// Some field attributes are calculated inside
// put_local_variable(), so we reinitialize the
// descriptor
MAKE_desc_from_field(&var_node->nod_desc, field);
locals++;
}
else if (parameter->nod_type == nod_cursor)