From 8f131bb1c4876c144d686e911782f708d59cc37f Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 13 Apr 2021 13:35:53 -0700 Subject: [PATCH] UdateMessage syntax --- QnetDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QnetDB.cpp b/QnetDB.cpp index 1194223..35624ea 100644 --- a/QnetDB.cpp +++ b/QnetDB.cpp @@ -139,7 +139,7 @@ bool CQnetDB::UpdateMessage(const char *callsign, const char *message) if (NULL == db) return false; std::stringstream sql; - sql << "UPDATE LHEARD SET message = '" << message << "' lasttime = strftime('%s','now')) WHERE callsign='" << callsign << "';"; + sql << "UPDATE LHEARD SET message = '" << message << "',lasttime = strftime('%s','now')) WHERE callsign='" << callsign << "';"; char *eMsg; if (SQLITE_OK != sqlite3_exec(db, sql.str().c_str(), NULL, 0, &eMsg))