Skip to content

Commit a014f31

Browse files
authored
Merge pull request #151 from utPLSQL/feature/warning_missing_i18n_driver
Feature/warning missing i18n driver
2 parents 62ba861 + 13ca323 commit a014f31

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can also download all development versions from [Bintray](https://bintray.co
2525
* When using reporters for Sonar or Coveralls client needs to be invoked from project's root directory.
2626
* Due to Oracle license we can't ship the necessary oracle libraries directly with utPLSQL-cli. <b>Please download the libraries directly from oracle website and put the jars into the "lib" folder of your utPLSQL-cli installation</b>
2727
* Oracle `ojdbc8` driver
28-
* If you are on a 11g database with non standard NLS settings, you will also need the `orai18n` library.
28+
* It is highly recommended that you also use the `orai18n` library, especially if you use a charset different than UTF-16 or are on Oracle 11g.
2929
* All of the above can be downloaded from [Oracle download site](http://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html)
3030

3131
## Compatibility

src/main/java/org/utplsql/cli/RunCommandChecker.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ class RunCommandChecker {
1818
*/
1919
static void checkOracleI18nExists(Connection con) throws SQLException {
2020

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

0 commit comments

Comments
 (0)