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 warning in mysql.go
天舟5cb93fae6567
diff --git a/bin/bb/restore/mysqlrestore/mysql.go b/bin/bb/restore/mysqlrestore/mysql.goindex 2bacb20aef..b16e9da825 100644--- a/bin/bb/restore/mysqlrestore/mysql.go+++ b/bin/bb/restore/mysqlrestore/mysql.go@@ -25,12 +25,12 @@ func Restore(conn *connect.MysqlConnect, sc *bufio.Scanner) error {case line == "DELIMITER ;;":delimiter = truecontinue- case line == "DELIMITER ;" && delimiter == true:+ case line == "DELIMITER ;" && delimiter:delimiter = falseexecute = truecase strings.HasSuffix(line, ";"):s = s + line + "\n"- if delimiter == false {+ if !delimiter {execute = true}default: