提交 0a63c8a9 编写于 作者: S serge-rider

#3549 MariaDB (Galera) use ALTER USER instead of UPDATE user

上级 d4426b5a
......@@ -88,7 +88,7 @@ public class MySQLCommandChangeUser extends DBECommandComposite<MySQLUser, UserP
StringBuilder script = new StringBuilder();
boolean hasSet;
final MySQLDataSource dataSource = getObject().getDataSource();
if (!dataSource.isMariaDB() && dataSource.isServerVersionAtLeast(5, 7)) {
if (dataSource.isMariaDB() || dataSource.isServerVersionAtLeast(5, 7)) {
hasSet = generateAlterScript(script);
} else {
hasSet = generateUpdateScript(script);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册