package org.utplsql.cli;

import org.utplsql.api.DBHelper;
import org.utplsql.api.Version;
import org.utplsql.api.compatibility.OptionalFeatures;

import java.sql.Connection;
import java.sql.SQLException;

/** Helper class to check several circumstances with RunCommand. Might need refactoring.
 *
 * @author pesse
 */
class RunCommandChecker {

    /** Checks that orai18n library exists if database is an oracle 11
     *
     */
    static void checkOracleI18nExists(Connection con) throws SQLException {

        String oracleDatabaseVersion = DBHelper.getOracleDatabaseVersion(con);
        if ( oracleDatabaseVersion.startsWith("11.") && !OracleLibraryChecker.checkOrai18nExists() )
        {
            System.out.println("Warning: Could not find Oracle i18n driver in classpath. Depending on the database charset " +
                    "utPLSQL-cli might not run properly. It is recommended you download " +
                    "the i18n driver from the Oracle website and copy it to the 'lib' folder of your utPLSQL-cli installation.");
            System.out.println("Download from http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html");
        }
    }
}

@@ -514,134 +514,12 @@
     
-String oracleDatabaseVersion = DBHelper.getOracleDatabaseVersion(con);%0A        if ( oracleDatabaseVersion.startsWith(%2211.%22) &&
+if (
  !Or
@@ -607,14 +607,14 @@
 n(%22W
-arning
+ARNING
 : Co
@@ -729,16 +729,43 @@
 LSQL-cli
+, especially code coverage,
  might n

Add warning for missing Ora i18n driver independent of DB version