OPENJPA-973: allow db2 jcc driver to access Informix

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fay Wang 2009-03-19 15:32:33 +00:00
parent 944ee1607b
commit b00ef73b40
1 changed files with 2 additions and 2 deletions

View File

@ -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);