Browse Source

Move to english locale when lower casing things, to avoid problems in other locales, like, say, turkey.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@387208 13f79535-47bb-0310-9956-ffa450edef68
remotes/1776816827838153613/tmp_25f451bd36ab3145e487fcb2cd5c62c571e5b602
Steve Loughran 20 years ago
parent
commit
6ad7ecf917
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/JDBCTask.java

+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/JDBCTask.java View File

@@ -23,6 +23,8 @@ import java.sql.Driver;
import java.sql.SQLException;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Locale;

import org.apache.tools.ant.AntClassLoader;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
@@ -252,8 +254,7 @@ public abstract class JDBCTask extends Task {
}

if (version != null) {
// XXX maybe better toLowerCase(Locale.US)
String theVersion = dmd.getDatabaseProductVersion().toLowerCase();
String theVersion = dmd.getDatabaseProductVersion().toLowerCase(Locale.ENGLISH);

log("Version = " + theVersion, Project.MSG_VERBOSE);
if (theVersion == null


Loading…
Cancel
Save