[SCM] PostGIS branch master updated. 3.4.0rc1-1143-g471644aa6

git at osgeo.org git at osgeo.org
Mon Jun 3 11:17: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, master has been updated
       via  471644aa62456fed97cb680d19d743ab6c17607d (commit)
      from  728db8ce19526e105cebaaec966f821be7041aeb (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 471644aa62456fed97cb680d19d743ab6c17607d
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 e86b5abae..52294b1e3 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:
 loader/shp2pgsql-core.c | 1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list