Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Fix some typos in comments (#11641)
eveneast8e47e69b5f2a
diff --git a/backend/plugin/db/mysql/dump.go b/backend/plugin/db/mysql/dump.goindex f3105fc146..9168e79fb4 100644--- a/backend/plugin/db/mysql/dump.go+++ b/backend/plugin/db/mysql/dump.go@@ -562,7 +562,7 @@ func getTableStmt(txn *sql.Tx, dbType storepb.Engine, dbName, tblName, tblType s}}-// getTableStmt gets the create statement of a table.+// getViewColumns gets the create statement of a table.func getViewColumns(txn *sql.Tx, dbName, tblName string) ([]string, error) {query := fmt.Sprintf("SHOW COLUMNS FROM `%s`.`%s`;", dbName, tblName)// https://dev.mysql.com/doc/refman/8.0/en/show-columns.htmldiff --git a/backend/plugin/db/starrocks/dump.go b/backend/plugin/db/starrocks/dump.goindex 5b3fcbe88d..6bca521ade 100644--- a/backend/plugin/db/starrocks/dump.go+++ b/backend/plugin/db/starrocks/dump.go@@ -314,7 +314,7 @@ func getTableStmt(txn *sql.Tx, dbName, tblName, tblType string) (string, error)}}-// getTableStmt gets the create statement of a table.+// getViewColumns gets the create statement of a table.func getViewColumns(txn *sql.Tx, dbName, tblName string) ([]string, error) {query := fmt.Sprintf("SHOW COLUMNS FROM `%s`.`%s`;", dbName, tblName)// https://dev.mysql.com/doc/refman/8.0/en/show-columns.htmldiff --git a/backend/plugin/db/tidb/dump.go b/backend/plugin/db/tidb/dump.goindex 7b911b5af2..4aaef88043 100644--- a/backend/plugin/db/tidb/dump.go+++ b/backend/plugin/db/tidb/dump.go@@ -504,7 +504,7 @@ func getTableStmt(txn *sql.Tx, dbType storepb.Engine, dbName, tblName, tblType s}}-// getTableStmt gets the create statement of a table.+// getViewColumns gets the create statement of a table.func getViewColumns(txn *sql.Tx, dbName, tblName string) ([]string, error) {query := fmt.Sprintf("SHOW COLUMNS FROM `%s`.`%s`;", dbName, tblName)// https://dev.mysql.com/doc/refman/8.0/en/show-columns.htmldiff --git a/backend/plugin/parser/mysql/differ.go b/backend/plugin/parser/mysql/differ.goindex 1088f5ce6f..e13b9571c0 100644--- a/backend/plugin/parser/mysql/differ.go+++ b/backend/plugin/parser/mysql/differ.go@@ -300,7 +300,7 @@ func dropTableOption(oldOption *tableOptionDef) *tableOptionDef {return oldOption}-// isTableOptionValEqual compare the two table options value, if they are equal, returns true.+// isTableOptionEqual compare the two table options value, if they are equal, returns true.// Caller need to ensure the two table options are not nil and the type is the same.func isTableOptionEqual(oldOption, newOption *tableOptionDef) bool {if oldOption.option == "DEFAULT CHARACTER SET" {diff --git a/backend/plugin/parser/mysql/normalize.go b/backend/plugin/parser/mysql/normalize.goindex d0201b7e91..5a634a2bd0 100644--- a/backend/plugin/parser/mysql/normalize.go+++ b/backend/plugin/parser/mysql/normalize.go@@ -100,7 +100,7 @@ func NormalizeMySQLTextOrIdentifier(ctx parser.ITextOrIdentifierContext) stringreturn textString[1 : len(textString)-1]}-// NormalizeMySQLTextStringLiteral normalize the given TextStringLiteral.+// NormalizeMySQLTextLiteral normalize the given TextStringLiteral.func NormalizeMySQLTextLiteral(ctx parser.ITextLiteralContext) string {textString := ctx.GetText()// remove the quotations.@@ -114,7 +114,7 @@ func NormalizeMySQLTextStringLiteral(ctx parser.ITextStringLiteralContext) strinreturn textString[1 : len(textString)-1]}-// NormalizeMySQLSignedStringLiteral normalize the given SignedLiteral.+// NormalizeMySQLSignedLiteral normalize the given SignedLiteral.func NormalizeMySQLSignedLiteral(ctx parser.ISignedLiteralContext) string {textString := ctx.GetText()if (strings.HasPrefix(textString, "'") && strings.HasSuffix(textString, "'")) || (strings.HasPrefix(textString, "\"") && strings.HasSuffix(textString, "\"")) {@@ -206,7 +206,7 @@ func NormalizeMySQLSchemaRef(ctx parser.ISchemaRefContext) string {return ""}-// NormalizeMySQLSchemaRef normalize the given schemaName.+// NormalizeMySQLSchemaName normalize the given schemaName.func NormalizeMySQLSchemaName(ctx parser.ISchemaNameContext) string {if ctx.Identifier() != nil {return NormalizeMySQLIdentifier(ctx.Identifier())diff --git a/backend/plugin/parser/mysql/query_span_extractor.go b/backend/plugin/parser/mysql/query_span_extractor.goindex 6549a19444..b708e94340 100644--- a/backend/plugin/parser/mysql/query_span_extractor.go+++ b/backend/plugin/parser/mysql/query_span_extractor.go@@ -915,12 +915,12 @@ func (l *recursiveCTEExtractListener) EnterQueryExpression(ctx *mysql.QueryExpre}}-// EnterCommonTableExpression is called when production commonTableExpression is entered.+// EnterWithClause is called when production commonTableExpression is entered.func (l *recursiveCTEExtractListener) EnterWithClause(_ *mysql.WithClauseContext) {l.inCTE = true}-// ExitCommonTableExpression is called when production commonTableExpression is exited.+// ExitWithClause is called when production commonTableExpression is exited.func (l *recursiveCTEExtractListener) ExitWithClause(_ *mysql.WithClauseContext) {l.inCTE = false}