Skip to content

Commit

Permalink
feat(sink): use mysql dialect for jdbc url start with mariadb (#19523)
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page authored Nov 26, 2024
1 parent 759ea19 commit 5d6aaf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class JdbcUtils {
static final int SOCKET_TIMEOUT = 300;

public static Optional<JdbcDialectFactory> getDialectFactory(String jdbcUrl) {
if (jdbcUrl.startsWith("jdbc:mysql")) {
if (jdbcUrl.startsWith("jdbc:mysql") || jdbcUrl.startsWith("jdbc:mariadb")) {
return Optional.of(new MySqlDialectFactory());
} else if (jdbcUrl.startsWith("jdbc:postgresql")) {
return Optional.of(new PostgresDialectFactory());
Expand Down

0 comments on commit 5d6aaf4

Please sign in to comment.