[GRASS-SVN] r60597 - grass/trunk/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 29 21:53:32 PDT 2014


Author: hcho
Date: 2014-05-29 21:53:32 -0700 (Thu, 29 May 2014)
New Revision: 60597

Modified:
   grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: no need to G_store datetime_type

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2014-05-30 04:46:55 UTC (rev 60596)
+++ grass/trunk/vector/v.in.ogr/main.c	2014-05-30 04:53:32 UTC (rev 60597)
@@ -104,7 +104,7 @@
 
     char *dsn;
     const char *driver_name;
-    char *datetime_type;
+    const char *datetime_type;
     char *output;
     char **layer_names;		/* names of layers to be imported */
     int *layers;		/* layer indexes */
@@ -341,11 +341,11 @@
     driver_name = db_get_default_driver_name();
 
     if (strcmp(driver_name, "pg") == 0)
-	datetime_type = G_store("timestamp with time zone");
+	datetime_type = "timestamp with time zone";
     else if (strcmp(driver_name, "dbf") == 0)
-	datetime_type = G_store("varchar(22)");
+	datetime_type = "varchar(22)";
     else
-	datetime_type = G_store("datetime");
+	datetime_type = "datetime";
 
     /* dsn is 'PG:', check default connection settings */
     dsn = NULL;



More information about the grass-commit mailing list