From: Date: March 22 2007 9:13pm Subject: bk commit into 5.0 tree (evgen:1.2495) BUG#26813 List-Archive: http://lists.mysql.com/commits/22697 X-Bug: 26813 Message-Id: <20070322201343.A20B722D207@moonbone.moonbone.local> Below is the list of changes that have just been committed into a local 5.0 repository of evgen. When evgen 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@stripped, 2007-03-22 23:13:40+03:00, evgen@stripped +1 -0 sql_view.cc: Post-fix for bug#26813. sql/sql_view.cc@stripped, 2007-03-22 23:12:41+03:00, evgen@stripped +2 -0 Post-fix for bug#26813. # 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: evgen # Host: moonbone.local # Root: /mnt/gentoo64/work/26813-bug-5.0-opt-mysql --- 1.106/sql/sql_view.cc 2007-03-22 22:04:19 +03:00 +++ 1.107/sql/sql_view.cc 2007-03-22 23:12:41 +03:00 @@ -224,7 +224,9 @@ { LEX *lex= thd->lex; bool link_to_local; +#ifndef NO_EMBEDDED_ACCESS_CHECKS bool definer_check_is_needed= mode != VIEW_ALTER || lex->definer; +#endif /* first table in list is target VIEW name => cut off it */ TABLE_LIST *view= lex->unlink_first_table(&link_to_local); TABLE_LIST *tables= lex->query_tables;