git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72975 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -7,7 +7,13 @@
char *get_datasource_name(const char *opt_dsn, int use_ogr)
{
char *dsn;
+
+ dsn = G_store(opt_dsn);
+ return dsn;
+ /* input OGR dsn and GRASS db connections are independent of each other */
+ /* TODO: remove below code */
if (G_strncasecmp(opt_dsn, "PG:", 3) == 0) {
/* PostgreSQL/PostGIS */
size_t i;
@@ -278,7 +278,7 @@ int main(int argc, char *argv[])
dsn = NULL;
if (options.dsn->answer)
- dsn = get_datasource_name(options.dsn->answer, TRUE);
+ dsn = G_store(options.dsn->answer);
/* create new OGR layer in datasource */
if (flags.new->answer) {