Showing with 7 additions and 2 deletions.
  1. +6 −1 src/providers/mssql/qgsmssqlnewconnection.cpp
  2. +1 −1 src/providers/mssql/qgsmssqlprovider.cpp
7 changes: 6 additions & 1 deletion src/providers/mssql/qgsmssqlnewconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,13 @@ void QgsMssqlNewConnection::testConnection()
}
else
{
QString dbName = txtDatabase->text();
if ( dbName.isEmpty() )
{
dbName = txtService->text();
}
QMessageBox::information( this,
tr( "Test connection" ),
tr( "Connection to %1 was successful" ).arg( txtDatabase->text() ) );
tr( "Connection to %1 was successful" ).arg( dbName ) );
}
}
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqlprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ bool QgsMssqlProvider::nextFeature( QgsFeature& feature )

if ( mFidCol >= 0 )
{
feature.setFeatureId( mQuery.value( col ).toInt() );
feature.setFeatureId( mQuery.value( col ).toLongLong() );
col++;
}

Expand Down