Skip to content

Commit

Permalink
Update syncthread.cpp
Browse files Browse the repository at this point in the history
fix the sql error when ID is num
  • Loading branch information
Big7lion authored Jun 7, 2017
1 parent c10b3e1 commit 648efaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataCollector/syncthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void SyncThread::run()
{
sync_action_flag = 0;
sync_query.clear();
QString query_string = QString("UPDATE `parameter_data` SET %1 = :d2 WHERE `user_ID`=:d3").arg(command2db(current_command));
QString query_string = QString("UPDATE `parameter_data` SET `%1` = :d2 WHERE `user_ID`=:d3").arg(command2db(current_command));
sync_query.prepare(query_string);
if(current_command == "option-sync")
{
Expand Down

0 comments on commit 648efaf

Please sign in to comment.