mirror of
https://github.com/MariaDB/server.git
synced 2025-07-18 23:03:28 +03:00
fix for bug #16400
scripts/mysql_fix_privilege_tables.sh: fix the message as per #16399 sql/sql_acl.cc: fix the priv per review comment by Serg
This commit is contained in:
@ -630,6 +630,9 @@ CREATE TABLE event (
|
||||
# EVENT privilege
|
||||
#
|
||||
|
||||
SET @hadEventPriv := 0;
|
||||
SELECT @hadEventPriv :=1 FROM user WHERE Event_priv LIKE '%';
|
||||
|
||||
ALTER TABLE user add Event_priv enum('N','Y') character set utf8 DEFAULT 'N' NOT NULL AFTER Create_user_priv;
|
||||
ALTER TABLE db add Event_priv enum('N','Y') character set utf8 DEFAULT 'N' NOT NULL;
|
||||
ALTER TABLE event DROP PRIMARY KEY;
|
||||
@ -667,6 +670,8 @@ ALTER TABLE event ADD sql_mode
|
||||
'HIGH_NOT_PRECEDENCE'
|
||||
) DEFAULT '' NOT NULL AFTER on_completion;
|
||||
|
||||
UPDATE user SET Event_priv=Super_priv WHERE @hadEventPriv = 0;
|
||||
|
||||
--
|
||||
-- TRIGGER privilege
|
||||
--
|
||||
|
Reference in New Issue
Block a user