databases/pointcloud: Backport upstream PR for PostgreSQL 11 support.

PR:		238302
Approved by:	lbartoletti@tuxfamily.org (maintainer)
Obtained from:	https://github.com/pgpointcloud/pointcloud/commit/3e64c68dd4e0b9b9fdf0a74492ab49023161f6f1
MFH:		2019Q2
This commit is contained in:
Larry Rosenman
2019-06-03 09:37:48 +00:00
parent f077a0a2b8
commit fccc08cced
3 changed files with 38 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
PORTNAME= pointcloud
PORTVERSION= 1.2.0
PORTREVISION= 1
PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= databases geography
@@ -0,0 +1,26 @@
--- pgsql/pc_access.c.orig 2018-08-22 09:36:04 UTC
+++ pgsql/pc_access.c
@@ -879,9 +879,9 @@ Datum pcpatch_intersects(PG_FUNCTION_ARGS)
if ( pc_bounds_intersects(&(serpa1->bounds), &(serpa2->bounds)) )
{
- PG_RETURN_BOOL(TRUE);
+ PG_RETURN_BOOL(true);
}
- PG_RETURN_BOOL(FALSE);
+ PG_RETURN_BOOL(false);
}
PG_FUNCTION_INFO_V1(pcpatch_size);
@@ -939,9 +939,9 @@ PG_FUNCTION_INFO_V1(pc_lazperf_enabled);
Datum pc_lazperf_enabled(PG_FUNCTION_ARGS)
{
#ifdef HAVE_LAZPERF
- PG_RETURN_BOOL(TRUE);
+ PG_RETURN_BOOL(true);
#else
- PG_RETURN_BOOL(FALSE);
+ PG_RETURN_BOOL(false);
#endif
}
@@ -0,0 +1,11 @@
--- pgsql/pc_inout.c.orig 2018-08-22 09:36:04 UTC
+++ pgsql/pc_inout.c
@@ -171,7 +171,7 @@ Datum pcschema_is_valid(PG_FUNCTION_ARGS)
if ( !schema )
{
- PG_RETURN_BOOL(FALSE);
+ PG_RETURN_BOOL(false);
}
valid = pc_schema_is_valid(schema);