diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2022-10-30 17:34:33 +0100 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2022-10-30 17:37:21 +0100 |
commit | 7fe10f756bc2d76a57f28a0350539ae2b614a3ae (patch) | |
tree | 25a0f1e92cb3449752b66eb05e75410d23217e99 /client/HandleMessage.cpp | |
parent | 26564caa92d02a85a23fcd768a301fc76ec7c4cd (diff) |
removed hardcoded `WSdb`
Diffstat (limited to 'client/HandleMessage.cpp')
-rw-r--r-- | client/HandleMessage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/HandleMessage.cpp b/client/HandleMessage.cpp index aa73828..3d8823b 100644 --- a/client/HandleMessage.cpp +++ b/client/HandleMessage.cpp @@ -1,6 +1,5 @@ #include "HandleMessage.h" - HandleMessage::HandleMessage(QObject *parent) : QObject(parent) { @@ -17,7 +16,7 @@ QString HandleMessage::ParseMessage(const QString Msg , int totalRecords ) void HandleMessage::ParseToSQL(QString input) { QSqlQuery queryInsertData; - QString output = "INSERT INTO `WSdb`.`tblMain` () VALUES "; + QString output = "INSERT INTO `tblMain` (`temperature`, `humidity`, `pressure`) VALUES "; QStringList data; QStringList list = input.split("\n"); for (int i = 0; i < list.size(); ++i) { |