Skip to content

Commit

Permalink
[CONJ-1190] creating alias for MySQL connector option 'databaseTerm' …
Browse files Browse the repository at this point in the history
…for option 'useCatalogTerm'
  • Loading branch information
rusher committed Jul 3, 2024
1 parent bf1f74a commit 8c33569
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ public final class OptionAliases {
OPTIONS_ALIASES.put("clientcertificatekeystorepassword", "keyStorePassword");
OPTIONS_ALIASES.put("clientcertificatekeystoretype", "keyStoreType");
OPTIONS_ALIASES.put("nullcatalogmeanscurrent", "nullDatabaseMeansCurrent");
OPTIONS_ALIASES.put("databaseterm", "useCatalogTerm");

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,12 @@ public void useCatalogTerm() throws SQLException {
assertThrows(
SQLException.class,
() -> Configuration.parse("jdbc:mariadb://localhost/test?useCatalogTerm=Wrong"));

conf = Configuration.parse("jdbc:mariadb://localhost/test?databaseTerm=Catalog");
assertEquals(conf.useCatalogTerm(), CatalogTerm.UseCatalog);

conf = Configuration.parse("jdbc:mariadb://localhost/test?databaseTerm=Schema");
assertEquals(conf.useCatalogTerm(), CatalogTerm.UseSchema);
}

@Test
Expand Down

0 comments on commit 8c33569

Please sign in to comment.