From 7fe10f756bc2d76a57f28a0350539ae2b614a3ae Mon Sep 17 00:00:00 2001 From: UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> Date: Sun, 30 Oct 2022 17:34:33 +0100 Subject: removed hardcoded `WSdb` --- client/HandleMessage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/HandleMessage.cpp') 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) { -- cgit v1.2.3