From: Date: October 11 2005 2:50pm Subject: bk commit into 5.0 tree (elliot:1.2034) List-Archive: http://lists.mysql.com/internals/30914 Message-Id: <20051011125042.52EB56EE6D1@agony.raraavisresearch.com> Below is the list of changes that have just been committed into a local 5.0 repository of emurphy. When emurphy 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.2034 05/10/11 08:50:34 elliot@stripped +1 -0 Merge mysql.com:/Users/emurphy/src/bk-clean/mysql-5.0 into mysql.com:/Users/emurphy/src/work/mysql-5.0-bug13343 sql/sql_parse.cc 1.505 05/10/11 08:50:27 elliot@stripped +0 -0 Auto merged # 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: elliot # Host: agony.local # Root: /Users/emurphy/src/work/mysql-5.0-bug13343/RESYNC --- 1.504/sql/sql_parse.cc 2005-10-10 15:41:50 -04:00 +++ 1.505/sql/sql_parse.cc 2005-10-11 08:50:27 -04:00 @@ -3684,6 +3684,8 @@ if (check_access(thd, INSERT_ACL, "mysql", 0, 1, 1, 0) && check_global_access(thd,CREATE_USER_ACL)) break; + if (end_active_trans(thd)) + goto error; if (!(res= mysql_create_user(thd, lex->users_list))) { if (mysql_bin_log.is_open()) @@ -3700,6 +3702,8 @@ if (check_access(thd, DELETE_ACL, "mysql", 0, 1, 1, 0) && check_global_access(thd,CREATE_USER_ACL)) break; + if (end_active_trans(thd)) + goto error; if (!(res= mysql_drop_user(thd, lex->users_list))) { if (mysql_bin_log.is_open()) @@ -3716,6 +3720,8 @@ if (check_access(thd, UPDATE_ACL, "mysql", 0, 1, 1, 0) && check_global_access(thd,CREATE_USER_ACL)) break; + if (end_active_trans(thd)) + goto error; if (!(res= mysql_rename_user(thd, lex->users_list))) { if (mysql_bin_log.is_open()) @@ -4510,6 +4516,9 @@ } case SQLCOM_CREATE_VIEW: { + if (end_active_trans(thd)) + goto error; + if (!(res= mysql_create_view(thd, thd->lex->create_view_mode)) && mysql_bin_log.is_open()) { @@ -4556,6 +4565,9 @@ } case SQLCOM_CREATE_TRIGGER: { + if (end_active_trans(thd)) + goto error; + res= mysql_create_or_drop_trigger(thd, all_tables, 1); /* We don't care about trigger body after this point */ @@ -4565,6 +4577,9 @@ } case SQLCOM_DROP_TRIGGER: { + if (end_active_trans(thd)) + goto error; + res= mysql_create_or_drop_trigger(thd, all_tables, 0); break; }