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:27 +0000 (13:25 +0200)
Found and fixed by Andres Freund.

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

index 6b54d75814f72657680991cb74b2a35b97c04467..eaf62d1e5ae3da83f5064fca52a5f0bbac7db1fa 100644 (file)
@@ -146,7 +146,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 2b670e0d00426a012aef666deed66900e1df5929..f0752bb9ca5ce6086fab3c0f3fd1544f5b37d11c 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 */