Skip to content
Snippets Groups Projects
Commit 75fbf8ad authored by Michael Meskes's avatar Michael Meskes
Browse files

Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers

or array variables.
parent c1bde074
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur)
else
{
newvar = new_variable(cat_str(4, mm_strdup("("),
mm_strdup(ecpg_type_name(ptr->variable->type->type)),
mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
mm_strdup(" *)(ECPGget_var("),
mm_strdup(var_text)),
ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment