Skip to content

Commit

Permalink
Fix driver name
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelborn committed Jun 11, 2024
1 parent c74bddc commit 33e17c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class MicrosoftSQLDriver extends GenericJDBCDriver {
*/
public MicrosoftSQLDriver() {
super();
this.name = new Key( "MicrosoftSQL" );
this.name = new Key( "MSSQL" );
this.type = DatabaseDriverType.MSSQL;
this.driverClassName = DEFAULT_CLASSNAME;
this.defaultDelimiter = DEFAULT_DELIMITER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MicrosoftSQLDriverTest {
@DisplayName( "Test getName()" )
public void testGetName() {
MicrosoftSQLDriver driver = new MicrosoftSQLDriver();
Key expectedName = new Key( "MicrosoftSQL" );
Key expectedName = new Key( "MSSQL" );
assertThat( driver.getName() ).isEqualTo( expectedName );
}

Expand All @@ -33,7 +33,7 @@ public void testGetType() {
public void testBuildConnectionURL() {
MicrosoftSQLDriver driver = new MicrosoftSQLDriver();
DatasourceConfig config = new DatasourceConfig();
config.properties.put( "driver", "postgresql" );
config.properties.put( "driver", "mssql" );
config.properties.put( "database", "mydb" );

String expectedURL = "jdbc:sqlserver://localhost:1433;databaseName=mydb;";
Expand Down

0 comments on commit 33e17c8

Please sign in to comment.