[GRASS-SVN] r38210 - grass/branches/releasebranch_6_4/db/base
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 4 12:47:31 EDT 2009
Author: martinl
Date: 2009-07-04 12:47:31 -0400 (Sat, 04 Jul 2009)
New Revision: 38210
Modified:
grass/branches/releasebranch_6_4/db/base/execute.c
Log:
do not ignore default schema - fix trac #673
(merge from devbr6, r38209)
Modified: grass/branches/releasebranch_6_4/db/base/execute.c
===================================================================
--- grass/branches/releasebranch_6_4/db/base/execute.c 2009-07-04 16:33:25 UTC (rev 38209)
+++ grass/branches/releasebranch_6_4/db/base/execute.c 2009-07-04 16:47:31 UTC (rev 38210)
@@ -41,6 +41,7 @@
dbHandle handle;
int ret;
FILE *fd;
+ const char *schema;
int error = 0;
parse_command_line(argc, argv);
@@ -61,7 +62,8 @@
}
db_init_handle(&handle);
- db_set_handle(&handle, parms.database, NULL);
+ schema = db_get_default_schema_name();
+ db_set_handle(&handle, parms.database, schema);
if (db_open_database(driver, &handle) != DB_OK)
G_fatal_error(_("Unable to open database <%s>"), parms.database);
More information about the grass-commit
mailing list