This commit is contained in:
Wolfgang Hottgenroth 2021-04-29 16:14:00 +02:00
parent f2975055fd
commit f6b138bfdd
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -148,7 +148,7 @@ t_device *findDevice(t_commonHandle *handle, char *deviceId) {
logmsg(LOG_DEBUG, "Statement: %s", stmt); logmsg(LOG_DEBUG, "Statement: %s", stmt);
PGresult *res2 = PQexec(handle->conn, stmt); PGresult *res2 = PQexec(handle->conn, stmt);
ExecStatusType execStatus = PQresultStatus(res2); ExecStatusType execStatus = PQresultStatus(res2);
switch(PQresultStatus(execStatus)) { switch(execStatus) {
case PGRES_COMMAND_OK: case PGRES_COMMAND_OK:
logmsg(LOG_INFO, "findDevice select returns PGRES_COMMAND_OK"); logmsg(LOG_INFO, "findDevice select returns PGRES_COMMAND_OK");
break; break;