diff options
author | Michael Meskes <meskes@postgresql.org> | 2004-05-05 15:06:21 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2004-05-05 15:06:21 +0000 |
commit | d57af54ffa946944bf698445efe3ef6dc6764db8 (patch) | |
tree | 6f073b88f3800768cacf4865dd85252cc6cd6010 | |
parent | 0feed4430546a979bae3cc520f5a0531676b9b1d (diff) | |
download | postgresql-d57af54ffa946944bf698445efe3ef6dc6764db8.tar.gz postgresql-d57af54ffa946944bf698445efe3ef6dc6764db8.zip |
Fixed bug in adjust_informix that treated arrays as simple variables.
-rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index bd111b72d20..85ba9473e6a 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.263.2.10 2004/03/04 07:38:50 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.263.2.11 2004/05/05 15:06:21 meskes Exp $ */ /* Copyright comment */ %{ @@ -211,7 +211,7 @@ adjust_informix(struct arguments *list) if (atoi(ptr->variable->type->size) > 1) { - ptr->variable = new_variable(cat_str(4, make_str("("), mm_strdup(ECPGtype_name(ptr->variable->type->type)), make_str(" *)(ECPG_informix_get_var("), mm_strdup(temp)), ECPGmake_simple_type(ptr->variable->type->type, ptr->variable->type->size), 0); + ptr->variable = new_variable(cat_str(4, make_str("("), mm_strdup(ECPGtype_name(ptr->variable->type->u.element->type)), make_str(" *)(ECPG_informix_get_var("), mm_strdup(temp)), ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type, make_str("1")), ptr->variable->type->size), 0); sprintf(temp, "%d, (", ecpg_informix_var++); } else |