Fix SQL syntax in prior commit

master
Timothy Pearson 12 years ago
parent 128d497c25
commit 84b137a12b

@ -526,7 +526,7 @@ void AuthSocket::commandLoop() {
bool online = true; bool online = true;
m_databaseServicesCursor->select(TQString("station=%1").arg((*it).id)); m_databaseServicesCursor->select(TQString("station=%1").arg((*it).id));
while (m_databaseServicesCursor->next()) { while (m_databaseServicesCursor->next()) {
m_databaseStatusCursor->select(TQString("serviceid=%1").arg(m_databaseServicesCursor->value("hostname").toString())); m_databaseStatusCursor->select(TQString("hostname='%1'").arg(m_databaseServicesCursor->value("hostname").toString()));
if (m_databaseStatusCursor->next()) { if (m_databaseStatusCursor->next()) {
if (m_databaseStatusCursor->value("online").toInt() == 0) { if (m_databaseStatusCursor->value("online").toInt() == 0) {
online = false; online = false;

Loading…
Cancel
Save