diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java index ac204436c..92bd66cbb 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java @@ -73,9 +73,9 @@ public class DBDictionaryFactory { */ public static DBDictionary calculateDBDictionary(JDBCConfiguration conf, String url, String driver, String props) { - String dclass = dictionaryClassForString(driver, conf); + String dclass = dictionaryClassForString(getProtocol(url), conf); if (dclass == null) - dclass = dictionaryClassForString(getProtocol(url), conf); + dclass = dictionaryClassForString(driver, conf); if (dclass == null) return null; return newDBDictionary(conf, dclass, props);