Skip to content
Browse files

Fix last_err value in MysqlDatabase::nextid()

  • Loading branch information...
1 parent f60bdf7 commit b5e263d731478240e696db5eab0ef7a79a429f5e @maksqwe maksqwe committed Aug 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/dbwrappers/mysqldataset.cpp
View
2 xbmc/dbwrappers/mysqldataset.cpp
@@ -431,7 +431,7 @@ long MysqlDatabase::nextid(const char* sname) {
CLog::Log(LOGINFO,"Next id is [%.*s] ", (int) lengths[0], row[0]);
sprintf(sqlcmd,"update %s set nextid=%d where seq_name = '%s'",seq_table,id,sname);
mysql_free_result(res);
- if ((last_err = query_with_reconnect(sqlcmd) != 0)) return DB_UNEXPECTED_RESULT;
+ if ((last_err = query_with_reconnect(sqlcmd)) != 0) return DB_UNEXPECTED_RESULT;
return id;
}
return DB_UNEXPECTED_RESULT;

0 comments on commit b5e263d

Please sign in to comment.
Something went wrong with that request. Please try again.