فهرست منبع

dbmilib: fix db_copy_table() - overwrite existing table

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65331 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 سال پیش
والد
کامیت
d18ad77bbb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/db/dbmi_client/copy_tab.c

+ 1 - 1
lib/db/dbmi_client/copy_tab.c

@@ -166,7 +166,7 @@ static int copy_table(const char *from_drvname, const char *from_dbname,
 	    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>"),