fixup! Use HASH_STRINGS explicitly in hash functions

talha_testpg14
Sait Talha Nisanci 2021-08-27 09:13:19 +03:00
parent 6c24dd4b25
commit c800c1e9b8
1 changed files with 7 additions and 7 deletions

View File

@ -135,16 +135,16 @@ ListToHashSet(List *itemList, Size keySize, bool isStringList)
info.entrysize = keySize;
info.hcxt = CurrentMemoryContext;
if (!isStringList)
if (isStringList)
{
#if PG_VERSION_NUM >= PG_VERSION_14
flags |= HASH_STRINGS;
#endif
}
else
{
flags |= HASH_BLOBS;
}
#if PG_VERSION_NUM >= PG_VERSION_14
else
{
flags |= HASH_STRINGS;
}
#endif
HTAB *itemSet = hash_create("ListToHashSet", capacity, &info, flags);