[GRASS-SVN] r65331 - grass/trunk/lib/db/dbmi_client
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 26 10:07:39 PDT 2015
Author: martinl
Date: 2015-05-26 10:07:39 -0700 (Tue, 26 May 2015)
New Revision: 65331
Modified:
grass/trunk/lib/db/dbmi_client/copy_tab.c
Log:
dbmilib: fix db_copy_table() - overwrite existing table
Modified: grass/trunk/lib/db/dbmi_client/copy_tab.c
===================================================================
--- grass/trunk/lib/db/dbmi_client/copy_tab.c 2015-05-26 16:48:14 UTC (rev 65330)
+++ grass/trunk/lib/db/dbmi_client/copy_tab.c 2015-05-26 17:07:39 UTC (rev 65331)
@@ -166,7 +166,7 @@
if (G_get_overwrite()) {
G_warning(_("Table <%s> already exists in database and will be overwritten"),
to_tblname);
- ret = db_drop_table(from_driver, &tblnames[i]);
+ ret = db_drop_table(to_driver, &tblnames[i]);
}
else {
G_warning(_("Table <%s> already exists in database <%s>"),
More information about the grass-commit
mailing list