Browse Source

v.in.ogr: declare missing values in string and date fields as NULL, not empty strings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67516 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 9 years ago
parent
commit
3960ab0a8e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vector/v.in.ogr/main.c

+ 2 - 2
vector/v.in.ogr/main.c

@@ -1264,7 +1264,7 @@ int main(int argc, char *argv[])
 			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 @@ int main(int argc, char *argv[])
                                  || Ogr_ftype == OFTInteger64List
 #endif
                                  ) {
-			    sprintf(buf, ", ''");
+			    sprintf(buf, ", NULL");
 			}
 			else {
 			    /* column type not supported */