浏览代码

vlib/pg: column check must be case-insensitive
(merge https://trac.osgeo.org/grass/changeset/60562 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60737 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 11 年之前
父节点
当前提交
cc9056c54b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/vector/Vlib/write_pg.c

+ 2 - 2
lib/vector/Vlib/write_pg.c

@@ -674,8 +674,8 @@ int create_table(struct Format_info_pg *pg_info)
             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;