mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-363: Change default driver case to throw an exception instead of default to SQL Server 2005 driver.
This commit is contained in:
@@ -22,6 +22,7 @@ package org.apache.guacamole.auth.sqlserver;
|
|||||||
import com.google.inject.Binder;
|
import com.google.inject.Binder;
|
||||||
import com.google.inject.Module;
|
import com.google.inject.Module;
|
||||||
import com.google.inject.name.Names;
|
import com.google.inject.name.Names;
|
||||||
|
import java.lang.UnsupportedOperationException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import org.apache.guacamole.GuacamoleException;
|
import org.apache.guacamole.GuacamoleException;
|
||||||
import org.mybatis.guice.datasource.helper.JdbcHelper;
|
import org.mybatis.guice.datasource.helper.JdbcHelper;
|
||||||
@@ -98,9 +99,13 @@ public class SQLServerAuthenticationProviderModule implements Module {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MICROSOFT_2005:
|
case MICROSOFT_2005:
|
||||||
default:
|
|
||||||
JdbcHelper.SQL_Server_2005_MS_Driver.configure(binder);
|
JdbcHelper.SQL_Server_2005_MS_Driver.configure(binder);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"A driver has been specified that is not supported by this module."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bind MyBatis properties
|
// Bind MyBatis properties
|
||||||
|
Reference in New Issue
Block a user