mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
|
||||
|
||||
#define MYSQL_LEX 1
|
||||
#include "mariadb.h"
|
||||
@ -3427,9 +3427,6 @@ mysql_execute_command(THD *thd)
|
||||
my_message(ER_SLAVE_IGNORED_TABLE, ER_THD(thd, ER_SLAVE_IGNORED_TABLE),
|
||||
MYF(0));
|
||||
}
|
||||
|
||||
for (table=all_tables; table; table=table->next_global)
|
||||
table->updating= TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -4662,6 +4659,16 @@ end_with_restore_list:
|
||||
res= 0;
|
||||
|
||||
unit->set_limit(select_lex);
|
||||
/*
|
||||
We can not use mysql_explain_union() because of parameters of
|
||||
mysql_select in mysql_multi_update so just set the option if needed
|
||||
*/
|
||||
if (thd->lex->describe)
|
||||
{
|
||||
select_lex->set_explain_type(FALSE);
|
||||
select_lex->options|= SELECT_DESCRIBE;
|
||||
}
|
||||
|
||||
res= mysql_multi_update_prepare(thd);
|
||||
|
||||
#ifdef HAVE_REPLICATION
|
||||
@ -8740,9 +8747,8 @@ bool st_select_lex::add_window_spec(THD *thd,
|
||||
query
|
||||
*/
|
||||
|
||||
void st_select_lex::set_lock_for_tables(thr_lock_type lock_type)
|
||||
void st_select_lex::set_lock_for_tables(thr_lock_type lock_type, bool for_update)
|
||||
{
|
||||
bool for_update= lock_type >= TL_READ_NO_INSERT;
|
||||
DBUG_ENTER("set_lock_for_tables");
|
||||
DBUG_PRINT("enter", ("lock_type: %d for_update: %d", lock_type,
|
||||
for_update));
|
||||
|
Reference in New Issue
Block a user