diff options
author | Michael Meskes <meskes@postgresql.org> | 2015-08-13 13:22:29 +0200 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2015-08-13 13:26:18 +0200 |
commit | 665ae7f9b4a9f5763e10eddb6761d3c95ffccc55 (patch) | |
tree | f797400e5f7799ab9fb8abd608dfd09878852548 /src | |
parent | 4390ba7bf937f56f647359b52e6ba04f31b21901 (diff) | |
download | postgresql-665ae7f9b4a9f5763e10eddb6761d3c95ffccc55.tar.gz postgresql-665ae7f9b4a9f5763e10eddb6761d3c95ffccc55.zip |
Fix declaration of isarray variable.
Found and fixed by Andres Freund.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/execute.c | 2 | ||||
-rw-r--r-- | src/interfaces/ecpg/ecpglib/extern.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 47e203c8aa0..dbda39186f4 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -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); diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index f9974b5cd48..33f0eabcc15 100644 --- a/src/interfaces/ecpg/ecpglib/extern.h +++ b/src/interfaces/ecpg/ecpglib/extern.h @@ -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 */ |