mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Fix build with PostgreSQL 9.5+
PR: 207314 Reported by: Vladyslav <vladka@webdevelop.pro>
This commit is contained in:
parent
93b9b573f9
commit
cb6a117af8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427767
1 changed files with 14 additions and 0 deletions
14
databases/postgis20/files/patch-postgis-lwgeom_accum.c
Normal file
14
databases/postgis20/files/patch-postgis-lwgeom_accum.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
--- postgis/lwgeom_accum.c.orig 2012-02-27 22:08:12 UTC
|
||||||
|
+++ postgis/lwgeom_accum.c
|
||||||
|
@@ -106,7 +106,11 @@ pgis_geometry_accum_transfn(PG_FUNCTION_
|
||||||
|
errmsg("could not determine input data type")));
|
||||||
|
|
||||||
|
if (fcinfo->context && IsA(fcinfo->context, AggState))
|
||||||
|
+#if POSTGIS_PGSQL_VERSION >= 95
|
||||||
|
+ aggcontext = ((AggState *) fcinfo->context)->aggcontexts;
|
||||||
|
+#else
|
||||||
|
aggcontext = ((AggState *) fcinfo->context)->aggcontext;
|
||||||
|
+#endif
|
||||||
|
#if POSTGIS_PGSQL_VERSION == 84
|
||||||
|
|
||||||
|
else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
|
Loading…
Add table
Reference in a new issue