Content-Length: 260711 | pFad | http://github.com/postgrespro/postgres/commit/0cf16b44cb749cac2ff9dcbbe92bfb94f72bb0d0

E0 btree_gin: properly call DirectFunctionCall1() · postgrespro/postgres@0cf16b4 · GitHub
Skip to content

Commit 0cf16b4

Browse files
committed
btree_gin: properly call DirectFunctionCall1()
Previously we called DirectFunctionCall3() with dummy arguments. Fixed version of previous patch. Report by Jon Nelson
1 parent 1d0db8d commit 0cf16b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contrib/btree_gin/btree_gin.c

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0cf16b44cb749cac2ff9dcbbe92bfb94f72bb0d0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy