#3093: v.in.ogr: shapefile with Date/NULL-field prevents creation of db-table
-------------------------+-------------------------
Reporter: Melwin | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Database | Version: 7.0.3
Keywords: | CPU: Unspecified
Platform: MSWindows 7 |
-------------------------+-------------------------
The attached shapefile contains a single polygon. The respective data
table has a field ("Date") which is NULL. When I import the attached
shapefile
If I remove the column "Date", everything works as expected.
I can produce this behaviour in GRASS 7.0.3 and 6.4.1 (Windows 7, 64 bit).
The latter even hangs when I try to display the attribute table from the
GUI then.
Date is reserved SQL word. It cannot be used for column name. You can
rename this column using `columns` options (whole list of columns must be
defined). The module could be of course more cleaver and rename such
column automatically eg. to `Date_`.