Skip to content

Commit

Permalink
teiiddes-1752: Modified driver name check to use getName()
Browse files Browse the repository at this point in the history
  • Loading branch information
tejones committed Jun 9, 2013
1 parent f942a6b commit aa8f8f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ public static ITeiidServerVersion getTeiidServerVersion() {
*/
public static Driver getTeiidDriver(ITeiidServerVersion teiidServerVersion, String driverClass) throws Exception {
Driver driver = TeiidRuntimeRegistry.getInstance().getTeiidDriver(teiidServerVersion);
if (driver != null && driver.getClass().getSimpleName().equals(driverClass))
if (driver != null && driver.getClass().getName().equals(driverClass))
return driver;

throw new IllegalStateException(Util.getString(I18N_PREFIX + "noTeiidDriver", driverClass, teiidServerVersion));
Expand Down

0 comments on commit aa8f8f7

Please sign in to comment.