fix
This commit is contained in:
parent
f2975055fd
commit
f6b138bfdd
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user