[SCM] PostGIS branch stable-3.4 updated. 3.4.2-41-gbb73a3fea

git at osgeo.org git at osgeo.org
Mon Jun 3 11:18:01 PDT 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-3.4 has been updated
       via  bb73a3fea9cf995da73ef63226c693849584c081 (commit)
       via  5c5a557d791f3d970fde3bec9e064e586a215da6 (commit)
      from  d4306cb9351d6d343fdea702c075911450e44ec6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bb73a3fea9cf995da73ef63226c693849584c081
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jun 3 11:17:53 2024 -0700

    Add news entry for #5720

diff --git a/NEWS b/NEWS
index 87d6d8947..ad811061a 100644
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,7 @@ To take advantage of all SFCGAL featurs, SFCGAL 1.4.1+ is needed.
           incorrect handling of directionals (Regina Obe)
  - #5653, Do not simplify away points when linestring doubles back on 
           itself (Paul Ramsey)
+ - #5720, Correctly mangle special column names in shp2pgsql (Paul Ramsey)
 
 PostGIS 3.4.2
 2024/02/08

commit 5c5a557d791f3d970fde3bec9e064e586a215da6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jun 3 11:16:41 2024 -0700

    Actually retain mangled special column names, references #5720

diff --git a/loader/shp2pgsql-core.c b/loader/shp2pgsql-core.c
index 2e9665a26..09c8f8b7f 100644
--- a/loader/shp2pgsql-core.c
+++ b/loader/shp2pgsql-core.c
@@ -1176,6 +1176,7 @@ ShpLoaderOpenShape(SHPLOADERSTATE *state)
 			char tmp[MAXFIELDNAMELEN] = "__";
 			memcpy(tmp+2, name, MAXFIELDNAMELEN-2);
 			tmp[MAXFIELDNAMELEN-1] = '\0';
+			strncpy(name, tmp, MAXFIELDNAMELEN);
 		}
 
 		/* Avoid duplicating field names */

-----------------------------------------------------------------------

Summary of changes:
 NEWS                    | 1 +
 loader/shp2pgsql-core.c | 1 +
 2 files changed, 2 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list