[jOOQ/jOOQ#9354] Also use MySQL workaround for MariaDB

`ALTER TABLE ... ALTER ... DROP DEFAULT` is better emulated as `ALTER
TABLE ... ALTER ... SET DEFAULT NULL` on MariaDB.
This commit is contained in:
Knut Wannheden 2019-11-20 14:38:01 +01:00
parent 2229e4ff71
commit 355ab8b35d

View File

@ -1482,8 +1482,11 @@ final class AlterTableImpl extends AbstractRowCountQuery implements
// MySQL supports DROP DEFAULT, but it does not work correctly:
// https://bugs.mysql.com/bug.php?id=81010
// Same for MariaDB
case MARIADB:
case MYSQL:
ctx.sql(' ').visit(K_SET_DEFAULT).sql(' ').visit(K_NULL);
break;