aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2015-08-13 13:22:29 +0200
committerMichael Meskes <meskes@postgresql.org>2015-08-13 13:25:27 +0200
commit83fd92290a4144db0963614e21c60a74d49abeb9 (patch)
tree3e27bc5ebd4084449e7e420b097f09815c2cd642 /src
parent8cd3a7adabcd1837a1aca80f11257ef11589630f (diff)
downloadpostgresql-83fd92290a4144db0963614e21c60a74d49abeb9.tar.gz
postgresql-83fd92290a4144db0963614e21c60a74d49abeb9.zip
Fix declaration of isarray variable.
Found and fixed by Andres Freund.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c2
-rw-r--r--src/interfaces/ecpg/ecpglib/extern.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
index 6b54d75814f..eaf62d1e5ae 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 2b670e0d004..f0752bb9ca5 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 */