Skip to content

Commit

Permalink
fix(mysql): 修复授权存储过程的检查bug #9062
Browse files Browse the repository at this point in the history
  • Loading branch information
xfwduke committed Jan 15, 2025
1 parent 9ec21b4 commit 7ebfbf8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ CREATE PROCEDURE infodba_schema.check_all(
SQL SECURITY INVOKER
BEGIN
-- 全量检查入口
CALL check_password(uuid, grant_time, username, ip_list, long_psw, short_psw, is_check_failed);
CALL check_db_conflict(uuid, grant_time, username, ip_list, db_list, is_check_failed);
SET @password_check = 0;
SET @db_check = 0;
CALL check_password(uuid, grant_time, username, ip_list, long_psw, short_psw, @password_check);
CALL check_db_conflict(uuid, grant_time, username, ip_list, db_list, @db_check);
SET is_check_failed = @password_check OR @db_check;
END #


Expand Down

0 comments on commit 7ebfbf8

Please sign in to comment.