summaryrefslogtreecommitdiffstats
path: root/servers/auth_server_lin
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-15 02:27:30 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-15 02:27:30 -0500
commit84b137a12bee6d656252582f56be903e8b0f6c3f (patch)
tree9311d83673c85ebeeaf3c3536e1f5e04d6aa9e6a /servers/auth_server_lin
parent128d497c25bf40e1fd136a7e980125e01cc2beed (diff)
downloadulab-84b137a12bee6d656252582f56be903e8b0f6c3f.tar.gz
ulab-84b137a12bee6d656252582f56be903e8b0f6c3f.zip
Fix SQL syntax in prior commit
Diffstat (limited to 'servers/auth_server_lin')
-rw-r--r--servers/auth_server_lin/src/auth_conn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/auth_server_lin/src/auth_conn.cpp b/servers/auth_server_lin/src/auth_conn.cpp
index 72e8240..2711cc4 100644
--- a/servers/auth_server_lin/src/auth_conn.cpp
+++ b/servers/auth_server_lin/src/auth_conn.cpp
@@ -526,7 +526,7 @@ void AuthSocket::commandLoop() {
bool online = true;
m_databaseServicesCursor->select(TQString("station=%1").arg((*it).id));
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->value("online").toInt() == 0) {
online = false;