]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fixed bug in adjust_informix that treated arrays as simple variables.
authorMichael Meskes <meskes@postgresql.org>
Wed, 5 May 2004 15:06:21 +0000 (15:06 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 5 May 2004 15:06:21 +0000 (15:06 +0000)
src/interfaces/ecpg/preproc/preproc.y

index bd111b72d208e3ba910107d6c10a1cc33cb1bcf7..85ba9473e6a0941add1fb74eca989c118bfe319d 100644 (file)
@@ -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