Commit addc0d84 authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Pavel Vainerman

PostgreSQL: used simple query for ping

parent 0db8772b
......@@ -54,7 +54,7 @@ bool PostgreSQLInterface::ping() const
{
nontransaction n(*(db.get()));
n.exec("select version();");
n.exec("select 1;");
return true;
}
catch( const std::exception& e )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment