8000 Fixed ECPG to correctly handle out-of-scope cursor declarations with … · koderP/postgres@149cfdb · GitHub
[go: up one dir, main page]

Skip to content

Commit 149cfdb

Browse files
author
Michael Meskes
committed
Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers
or array variables.
1 parent b1be335 commit 149cfdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 1 addition & 1 deletion
32D2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur)
335335
else
336336
{
337337
newvar = new_variable(cat_str(4, mm_strdup("("),
338-
mm_strdup(ecpg_type_name(ptr->variable->type->type)),
338+
mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
339339
mm_strdup(" *)(ECPGget_var("),
340340
mm_strdup(var_text)),
341341
ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,

0 commit comments

Comments
 (0)
0