Skip to content

Commit

Permalink
v.in.ogr: handle skipped, not empty columns (OSGeo#2658)
Browse files Browse the repository at this point in the history
* handle skipped, not empty columns

* fix typo
  • Loading branch information
ninsbl committed Feb 17, 2023
1 parent cd0ae77 commit e77811f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vector/v.in.ogr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,10 @@ int main(int argc, char *argv[])
db_double_quote_string(&strval);
G_rasprintf(&sqlbuf, &sqlbufsize, ", '%s'", db_get_string(&strval));
}
else {
/* column type not supported (thus skipped) and not empty */
G_rasprintf(&sqlbuf, &sqlbufsize, "%c", '\0');
}
}
else {
/* G_warning (_("Column value not set" )); */
Expand Down

0 comments on commit e77811f

Please sign in to comment.