[GRASS-SVN] r67702 - grass/branches/releasebranch_7_0/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 29 00:58:46 PST 2016


Author: mlennert
Date: 2016-01-29 00:58:46 -0800 (Fri, 29 Jan 2016)
New Revision: 67702

Modified:
   grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c
Log:
v.in.ogr: declare missing values in string and date fields as NULL, not empty strings (merge from trunk r67516)

Modified: grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c	2016-01-29 03:40:43 UTC (rev 67701)
+++ grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c	2016-01-29 08:58:46 UTC (rev 67702)
@@ -1255,13 +1255,13 @@
 			else if (Ogr_ftype == OFTDate ||
 				 Ogr_ftype == OFTTime || 
 				 Ogr_ftype == OFTDateTime) {
-			    sprintf(buf, ", ''");
+			    sprintf(buf, ", NULL");
 			}
 #endif
 			else if (Ogr_ftype == OFTString ||
 			         Ogr_ftype == OFTStringList ||
 				 Ogr_ftype == OFTIntegerList) {
-			    sprintf(buf, ", ''");
+			    sprintf(buf, ", NULL");
 			}
 			else {
 			    /* column type not supported */



More information about the grass-commit mailing list