Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: diff mysql ordering index (#3146)
h3n4l527432ab6e9c
diff --git a/plugin/parser/differ/mysql/differ.go b/plugin/parser/differ/mysql/differ.goindex feffce7f9c..f39ce5bf96 100644--- a/plugin/parser/differ/mysql/differ.go+++ b/plugin/parser/differ/mysql/differ.go@@ -830,6 +830,9 @@ func isKeyPartEqual(old, new []*ast.IndexPartSpecification) bool {}return oldKeyPartStr == newKeyPartStr}+ if oldKeyPart.Desc != newKeyPart.Desc {+ return false+ }// TODO(zp): TiDB MySQL parser doesn't record the index order field in go struct, but it can parse correctly.// https://sourcegraph.com/github.com/pingcap/tidb/-/blob/parser/parser.y?L3688// We can support the index order until we implement the parser by ourself or https://github.com/pingcap/tidb/pull/38137 is merged.