Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 761cdaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/db2/qgsdb2newconnection.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoraclenewconnection.cpp
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspgnewconnection.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 761cdaf

Please sign in to comment.