Skip to content
Permalink
Browse files

db provider: Use connection name instead of potentially empty databas…

…e name when reporting connection success
  • Loading branch information
jef-n committed Jul 4, 2018
1 parent 74d5844 commit 761cdaf30af1a7a9e27d1647ebdd205f1d2ef93c
@@ -176,7 +176,7 @@ bool QgsDb2NewConnection::testConnection()
if ( errMsg.isEmpty() )
{
QgsDebugMsg( "connection open succeeded " + connInfo );
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtDatabase->text() ),
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtName->text() ),
Qgis::Info );
return true;
}
@@ -159,7 +159,7 @@ void QgsOracleNewConnection::testConnection()
if ( conn )
{
// Database successfully opened; we can now issue SQL commands.
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtDatabase->text() ),
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtName->text() ),
Qgis::Info );
// free connection resources
QgsOracleConnPool::instance()->releaseConnection( conn );
@@ -205,7 +205,7 @@ void QgsPgNewConnection::testConnection()
if ( conn )
{
// Database successfully opened; we can now issue SQL commands.
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtDatabase->text() ),
bar->pushMessage( tr( "Connection to %1 was successful." ).arg( txtName->text() ),
Qgis::Info );

// free pg connection resources

0 comments on commit 761cdaf

Please sign in to comment.
You can’t perform that action at this time.