Skip to content

Commit 11226e3

Browse files
committed
Revert commit 843cd0b
Report by Tom Lane
1 parent 0e1f6d8 commit 11226e3

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

contrib/btree_gin/btree_gin.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,10 @@ GIN_SUPPORT(macaddr, false, leftmostvalue_macaddr, macaddr_cmp)
318318
static Datum
319319
leftmostvalue_inet(void)
320320
{
321-
return DirectFunctionCall1(inet_in, CStringGetDatum("0.0.0.0/0"));
321+
return DirectFunctionCall3(inet_in,
322+
CStringGetDatum("0.0.0.0/0"),
323+
ObjectIdGetDatum(0),
324+
Int32GetDatum(-1));
322325
}
323326
GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)
324327

@@ -343,14 +346,20 @@ GIN_SUPPORT(bytea, true, leftmostvalue_text, byteacmp)
343346
static Datum
344347
leftmostvalue_bit(void)
345348
{
346-
return DirectFunctionCall1(bit_in, CStringGetDatum(""));
349+
return DirectFunctionCall3(bit_in,
350+
CStringGetDatum(""),
351+
ObjectIdGetDatum(0),
352+
Int32GetDatum(-1));
347353
}
348354
GIN_SUPPORT(bit, true, leftmostvalue_bit, bitcmp)
349355

350356
static Datum
351357
leftmostvalue_varbit(void)
352358
{
353-
return DirectFunctionCall1(varbit_in, CStringGetDatum(""));
359+
return DirectFunctionCall3(varbit_in,
360+
CStringGetDatum(""),
361+
ObjectIdGetDatum(0),
362+
Int32GetDatum(-1));
354363
}
355364
GIN_SUPPORT(varbit, true, leftmostvalue_varbit, bitcmp)
356365

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy