[GRASS-SVN] r67516 - grass/trunk/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 7 08:25:21 PST 2016
Author: mlennert
Date: 2016-01-07 08:25:21 -0800 (Thu, 07 Jan 2016)
New Revision: 67516
Modified:
grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: declare missing values in string and date fields as NULL, not empty strings
Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c 2016-01-07 11:44:17 UTC (rev 67515)
+++ grass/trunk/vector/v.in.ogr/main.c 2016-01-07 16:25:21 UTC (rev 67516)
@@ -1264,7 +1264,7 @@
else if (Ogr_ftype == OFTDate ||
Ogr_ftype == OFTTime ||
Ogr_ftype == OFTDateTime) {
- sprintf(buf, ", ''");
+ sprintf(buf, ", NULL");
}
#endif
else if (Ogr_ftype == OFTString ||
@@ -1274,7 +1274,7 @@
|| Ogr_ftype == OFTInteger64List
#endif
) {
- sprintf(buf, ", ''");
+ sprintf(buf, ", NULL");
}
else {
/* column type not supported */
More information about the grass-commit
mailing list