]> granicus.if.org Git - postgresql/commitdiff
Fix declaration of isarray variable.
authorMichael Meskes <meskes@postgresql.org>
Thu, 13 Aug 2015 11:22:29 +0000 (13:22 +0200)
committerMichael Meskes <meskes@postgresql.org>
Thu, 13 Aug 2015 11:26:32 +0000 (13:26 +0200)
Found and fixed by Andres Freund.

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

index 70cfa3f3a695d2525a72c18fd1da1a62da992fc4..4a32ddf158e44fd3189a793f8c664abd191793ff 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 ea32934287fcf4231e81c97b43efda5fb65c885c..1c99122290b6db9724fc759592dcce558650bc7f 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 */