[GRASS-SVN] r38209 - grass/branches/develbranch_6/db/base
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 4 12:33:26 EDT 2009
Author: martinl
Date: 2009-07-04 12:33:25 -0400 (Sat, 04 Jul 2009)
New Revision: 38209
Modified:
grass/branches/develbranch_6/db/base/execute.c
Log:
do not ignore default schema - fix trac #673
Modified: grass/branches/develbranch_6/db/base/execute.c
===================================================================
--- grass/branches/develbranch_6/db/base/execute.c 2009-07-04 16:23:53 UTC (rev 38208)
+++ grass/branches/develbranch_6/db/base/execute.c 2009-07-04 16:33:25 UTC (rev 38209)
@@ -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