Skip to content

Commit 83fd922

Browse files
author
Michael Meskes
committed
Fix declaration of isarray variable.
Found and fixed by Andres Freund.
1 parent 8cd3a7a commit 83fd922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interfaces/ecpg/ecpglib/execute.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ next_insert(char *text, int pos, bool questionmarks)
146146
}
147147

148148
static bool
149-
ecpg_type_infocache_push(struct ECPGtype_information_cache ** cache, int oid, bool isarray, int lineno)
149+
ecpg_type_infocache_push(struct ECPGtype_information_cache ** cache, int oid, enum ARRAY_TYPE isarray, int lineno)
150150
{
151151
struct ECPGtype_information_cache *new_entry
152152
= (struct ECPGtype_information_cache *) ecpg_alloc(sizeof(struct ECPGtype_information_cache), lineno);

src/interfaces/ecpg/ecpglib/extern.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct ECPGtype_information_cache
4444
{
4545
struct ECPGtype_information_cache *next;
4646
int oid;
47-
bool isarray;
47+
enum ARRAY_TYPE isarray;
4848
};
4949

5050
/* structure to store one statement */

0 commit comments

Comments
 (0)