Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unneeded checks for identifier of HANA instance
  • Loading branch information
Maksim Rylov authored and mrylov committed Dec 7, 2020
1 parent 6a02956 commit 7616885
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/providers/hana/qgshananewconnection.cpp
Expand Up @@ -309,14 +309,6 @@ void QgsHanaNewConnection::testConnection()
warningMsg = QStringLiteral( "Password has not been specified." );
else if ( txtIdentifier->text().isEmpty() )
warningMsg = QStringLiteral( "Identifier has not been specified." );
else
{
auto id = QgsHanaIdentifierType::fromInt( static_cast<uint>( cmbIdentifierType->currentIndex() ) );
int len = txtIdentifier->text().length();
if ( ( id == QgsHanaIdentifierType::INSTANCE_NUMBER && len != 2 ) ||
( id == QgsHanaIdentifierType::PORT_NUMBER && len != 5 ) )
warningMsg = QStringLiteral( "Identifier has incorrect format." );
}

if ( !warningMsg.isEmpty() )
{
Expand Down

0 comments on commit 7616885

Please sign in to comment.