mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
btree_gin: properly call DirectFunctionCall1()
Previously we called DirectFunctionCall3() with dummy arguments. Fixed version of previous patch. Report by Jon Nelson
This commit is contained in:
parent
1d0db8de04
commit
0cf16b44cb
@ -318,10 +318,7 @@ GIN_SUPPORT(macaddr, false, leftmostvalue_macaddr, macaddr_cmp)
|
|||||||
static Datum
|
static Datum
|
||||||
leftmostvalue_inet(void)
|
leftmostvalue_inet(void)
|
||||||
{
|
{
|
||||||
return DirectFunctionCall3(inet_in,
|
return DirectFunctionCall1(inet_in, CStringGetDatum("0.0.0.0/0"));
|
||||||
CStringGetDatum("0.0.0.0/0"),
|
|
||||||
ObjectIdGetDatum(0),
|
|
||||||
Int32GetDatum(-1));
|
|
||||||
}
|
}
|
||||||
GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)
|
GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user