Przeglądaj źródła

vlib/pg: column check must be case-insensitive

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60562 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 lat temu
rodzic
commit
584bf15dc2
1 zmienionych plików z 2 dodań i 2 usunięć
  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",
             G_debug(3, "\tcolumn = %d name = %s type = %d length = %d",
                     col, colname, sqltype, length);
                     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 */
                 /* skip fid column if exists */
                 G_debug(3, "\t%s skipped", colname);
                 G_debug(3, "\t%s skipped", colname);
                 continue;
                 continue;