logs writing to LINKSYSTEM table

link
Tom Early 9 months ago
parent 425e007aa1
commit 701cb123ac

@ -179,6 +179,8 @@ bool CQnetDB::UpdateLS(const char *address, const char from_mod, const char *to_
std::stringstream sql; std::stringstream sql;
sql << "INSERT OR REPLACE INTO LINKSTATUS (ip_address, from_mod, to_callsign, to_mod, linked_time) VALUES ('" << address << "', '" << from_mod << "', '" << to_callsign << "', '" << to_mod << "', " << linked_time << ");"; sql << "INSERT OR REPLACE INTO LINKSTATUS (ip_address, from_mod, to_callsign, to_mod, linked_time) VALUES ('" << address << "', '" << from_mod << "', '" << to_callsign << "', '" << to_mod << "', " << linked_time << ");";
printf("%s\n", sql.str().c_str());
char *eMsg; char *eMsg;
if (SQLITE_OK != sqlite3_exec(db, sql.str().c_str(), NULL, 0, &eMsg)) if (SQLITE_OK != sqlite3_exec(db, sql.str().c_str(), NULL, 0, &eMsg))
{ {

Loading…
Cancel
Save

Powered by TurnKey Linux.