projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1be335
)
Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers
author
Michael Meskes
Mon, 11 Sep 2017 19:10:36 +0000
(21:10 +0200)
committer
Michael Meskes
Mon, 18 Sep 2017 21:08:24 +0000
(23:08 +0200)
or array variables.
src/interfaces/ecpg/preproc/ecpg.header
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/ecpg.header
b/src/interfaces/ecpg/preproc/ecpg.header
index cab82f78b9392247ea756551f4cd1d20d6042288..0b7f4ede65d6f906c11d8d5afbf9eaac66970438 100644
(file)
--- a/
src/interfaces/ecpg/preproc/ecpg.header
+++ b/
src/interfaces/ecpg/preproc/ecpg.header
@@
-335,7
+335,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,