[GRASS-SVN] r60562 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 28 14:00:04 PDT 2014
Author: martinl
Date: 2014-05-28 14:00:04 -0700 (Wed, 28 May 2014)
New Revision: 60562
Modified:
grass/trunk/lib/vector/Vlib/write_pg.c
Log:
vlib/pg: column check must be case-insensitive
Modified: grass/trunk/lib/vector/Vlib/write_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/write_pg.c 2014-05-28 20:56:44 UTC (rev 60561)
+++ grass/trunk/lib/vector/Vlib/write_pg.c 2014-05-28 21:00:04 UTC (rev 60562)
@@ -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