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