[mysql] show the actual view name instead of database name on error.
authorDmitry Blokhin <santafox@gmail.com>
Mon, 20 Jan 2014 22:41:57 +0000 (00:41 +0200)
committerJonathan Marshall <jmarshall@xbmc.org>
Wed, 5 Feb 2014 20:27:30 +0000 (09:27 +1300)
xbmc/dbwrappers/mysqldataset.cpp

index 523e621..8512e28 100644 (file)
@@ -303,7 +303,7 @@ int MysqlDatabase::copy(const char *backup_name) {
         if ( (ret=query_with_reconnect(sql)) != MYSQL_OK )
         {
           mysql_free_result(resViews);
-          throw DbErrors("Can't create view '%s'\nError: %s", db.c_str(), ret);
+          throw DbErrors("Can't create view '%s'\nError: %s", row[0], ret);
         }
       }
       mysql_free_result(resViews);