From: Date: February 23 2006 7:51pm Subject: bk commit into 5.1 tree (andrey:1.2157) BUG#16400 List-Archive: http://lists.mysql.com/commits/3077 X-Bug: 16400 Message-Id: <20060223185122.8F38933B4E@andrey.hristov.com> Below is the list of changes that have just been committed into a local 5.1 repository of andrey. When andrey does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2157 06/02/23 19:50:54 andrey@lmy004. +1 -0 fix for bug #16400 scripts/mysql_fix_privilege_tables.sql 1.41 06/02/23 19:50:38 andrey@lmy004. +5 -0 fix for bug #16400 # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: andrey # Host: lmy004. # Root: /work/mysql-5.1-release --- 1.40/scripts/mysql_fix_privilege_tables.sql 2006-02-02 11:35:58 +01:00 +++ 1.41/scripts/mysql_fix_privilege_tables.sql 2006-02-23 19:50:38 +01:00 @@ -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; @@ -666,6 +669,8 @@ ALTER TABLE event ADD sql_mode 'NO_AUTO_CREATE_USER', 'HIGH_NOT_PRECEDENCE' ) DEFAULT '' NOT NULL AFTER on_completion; + +UPDATE user SET Event_priv=Super_priv WHERE @hadEventPriv = 0; -- -- TRIGGER privilege