[GRASS-SVN] r60737 - grass/branches/releasebranch_7_0/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 8 01:28:24 PDT 2014


Author: martinl
Date: 2014-06-08 01:28:23 -0700 (Sun, 08 Jun 2014)
New Revision: 60737

Modified:
   grass/branches/releasebranch_7_0/lib/vector/Vlib/write_pg.c
Log:
vlib/pg: column check must be case-insensitive
         (merge r60562 from trunk)


Modified: grass/branches/releasebranch_7_0/lib/vector/Vlib/write_pg.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/vector/Vlib/write_pg.c	2014-06-08 08:27:30 UTC (rev 60736)
+++ grass/branches/releasebranch_7_0/lib/vector/Vlib/write_pg.c	2014-06-08 08:28:23 UTC (rev 60737)
@@ -674,8 +674,8 @@
             G_debug(3, "\tcolumn = %d name = %s type = %d length = %d",
                     col, colname, sqltype, length);
 
-            if (strcmp(pg_info->fid_column, colname) == 0 ||
-                strcmp(GV_KEY_COLUMN, colname) == 0) {
+            if (G_strcasecmp(pg_info->fid_column, colname) == 0 ||
+                G_strcasecmp(GV_KEY_COLUMN, colname) == 0) {
                 /* skip fid column if exists */
                 G_debug(3, "\t%s skipped", colname);
                 continue;



More information about the grass-commit mailing list