|
21 | 21 | import static java.util.Objects.requireNonNull; |
22 | 22 | import static javaslang.API.Case; |
23 | 23 | import static javaslang.API.Match; |
24 | | -import static javaslang.Predicates.isIn; |
25 | 24 |
|
26 | 25 | import java.util.function.BiConsumer; |
27 | 26 | import java.util.function.Consumer; |
@@ -204,11 +203,13 @@ public QueryDSL with(final SQLTemplates templates) { |
204 | 203 | static SQLTemplates toSQLTemplates(final String type) { |
205 | 204 | return Match(type).option( |
206 | 205 | Case("db2", DB2Templates::new), |
207 | | - Case(isIn("mysql", "mariadb"), MySQLTemplates::new), |
| 206 | + Case("mysql", MySQLTemplates::new), |
| 207 | + Case("mariadb", MySQLTemplates::new), |
208 | 208 | Case("mariadb", MySQLTemplates::new), |
209 | 209 | Case("h2", H2Templates::new), |
210 | 210 | Case("hsqldb", HSQLDBTemplates::new), |
211 | | - Case(isIn("pgsql", "postgresql"), PostgreSQLTemplates::new), |
| 211 | + Case("pgsql", PostgreSQLTemplates::new), |
| 212 | + Case("postgresql", PostgreSQLTemplates::new), |
212 | 213 | Case("sqlite", SQLiteTemplates::new), |
213 | 214 | Case("oracle", OracleTemplates::new), |
214 | 215 | Case("firebirdsql", FirebirdTemplates::new)) |
|
0 commit comments