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:25:02 +0200 |
commit | edebddbb845575206d07145af2d718609b01f6ad (patch) | |
tree | 4199af3285b2e673d54ce08d0624acabdfb6f799 | |
parent | 652ca927ca4d9553691b9c6385111bea353070d8 (diff) | |
download | postgresql-edebddbb845575206d07145af2d718609b01f6ad.tar.gz postgresql-edebddbb845575206d07145af2d718609b01f6ad.zip |
Fix declaration of isarray variable.
Found and fixed by Andres Freund.
-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 9a56a5cd4ac..9e40f4161a5 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -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); diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index 1fa21fd84ac..263e0014fde 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 */ |