[jOOQ/jOOQ#11575] Removed unnecessary dialect switches

This commit is contained in:
Lukas Eder 2021-03-05 13:13:50 +01:00
parent 04503f977e
commit cf4efc5831
2 changed files with 5 additions and 5 deletions

View File

@ -9472,7 +9472,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
Field<String> f2 = (Field) parseField(S);
parse(')');
switch (parseDialect()) {
switch (parseFamily()) {

View File

@ -181,13 +181,13 @@ public class JDBCUtils {
@NotNull
private static final SQLDialect dialect(String url, int majorVersion, int minorVersion) {
SQLDialect dialect = dialect(url);
SQLDialect family = dialect(url).family();
// [#6814] If the driver can't report the version, fall back to the dialect family
if (majorVersion == 0)
return dialect;
return family;
switch (dialect.family()) {
switch (family) {
@ -206,7 +206,7 @@ public class JDBCUtils {
return postgresDialect(majorVersion, minorVersion);
}
return dialect;
return family;
}