Make sure status() returns a message also on bad connection
Closes #2173.
This commit is contained in:
parent
f2021971f0
commit
d36c39d9be
1 changed files with 2 additions and 1 deletions
|
@ -129,7 +129,8 @@ public:
|
|||
std::string status;
|
||||
if (conn_)
|
||||
{
|
||||
status = PQerrorMessage(conn_);
|
||||
if ( isOK() ) return PQerrorMessage(conn_);
|
||||
else return "Bad connection";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue