Content-Length: 255768 | pFad | http://github.com/postgrespro/postgres_cluster/commit/59b5a3e5c72e4b91876df226eab09dc97c6e190e

51 Fixed ECPG to correctly handle out-of-scope cursor declarations with … · postgrespro/postgres_cluster@59b5a3e · GitHub
Skip to content

Commit 59b5a3e

Browse files
author
Michael Meskes
committed
Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers
or array variables.
1 parent 86e4ebb commit 59b5a3e

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
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur)
352352
else
353353
{
354354
newvar = new_variable(cat_str(4, mm_strdup("("),
355-
mm_strdup(ecpg_type_name(ptr->variable->type->type)),
355+
mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
356356
mm_strdup(" *)(ECPGget_var("),
357357
mm_strdup(var_text)),
358358
ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/59b5a3e5c72e4b91876df226eab09dc97c6e190e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy