Fix declaration of isarray variable.
authorMichael Meskes
Thu, 13 Aug 2015 11:22:29 +0000 (13:22 +0200)
committerMichael Meskes
Thu, 13 Aug 2015 11:25:45 +0000 (13:25 +0200)
Found and fixed by Andres Freund.

src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/extern.h

index 31ea5db6b76ff4262edcb79512578a37beb35990..730184742bac405b328aaa2338a7fa1ee3aa3941 100644 (file)
@@ -150,7 +150,7 @@ next_insert(char *text, int pos, bool questionmarks)
 }
 
 static bool
-ecpg_type_infocache_push(struct ECPGtype_information_cache ** cache, int oid, bool isarray, int lineno)
+ecpg_type_infocache_push(struct ECPGtype_information_cache ** cache, int oid, enum ARRAY_TYPE isarray, int lineno)
 {
    struct ECPGtype_information_cache *new_entry
    = (struct ECPGtype_information_cache *) ecpg_alloc(sizeof(struct ECPGtype_information_cache), lineno);
index 7583529874bcb60ee76af4f931fb314ff9b11c1b..46ff6cdbb7f0cf0fb4ad67d626953b09858d98ba 100644 (file)
@@ -44,7 +44,7 @@ struct ECPGtype_information_cache
 {
    struct ECPGtype_information_cache *next;
    int         oid;
-   bool        isarray;
+   enum ARRAY_TYPE isarray;
 };
 
 /* structure to store one statement */