mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Fix mixup of bool and ternary value
Not currently a problem, but could be with stricter bool behavior under stdbool or C++. Reviewed-by: Andres Freund <andres@anarazel.de>
This commit is contained in:
parent
a071fe87a2
commit
e6c9a5a9bc
@ -147,7 +147,7 @@ ginFillScanKey(GinScanOpaque so, OffsetNumber attnum,
|
||||
key->nuserentries = nUserQueryValues;
|
||||
|
||||
key->scanEntry = (GinScanEntry *) palloc(sizeof(GinScanEntry) * nQueryValues);
|
||||
key->entryRes = (bool *) palloc0(sizeof(bool) * nQueryValues);
|
||||
key->entryRes = (GinTernaryValue *) palloc0(sizeof(GinTernaryValue) * nQueryValues);
|
||||
|
||||
key->query = query;
|
||||
key->queryValues = queryValues;
|
||||
|
@ -281,7 +281,7 @@ typedef struct GinScanKeyData
|
||||
int nadditional;
|
||||
|
||||
/* array of check flags, reported to consistentFn */
|
||||
bool *entryRes;
|
||||
GinTernaryValue *entryRes;
|
||||
bool (*boolConsistentFn) (GinScanKey key);
|
||||
GinTernaryValue (*triConsistentFn) (GinScanKey key);
|
||||
FmgrInfo *consistentFmgrInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user