maria:bb-10.4-MDEV-28294-merge

Last commit made on 2022-04-29
Get this branch:
git clone -b bb-10.4-MDEV-28294-merge https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-MDEV-28294-merge
Repository:
lp:maria

Recent commits

6080ef0... by Brandon Nesterenko

MDEV-28294: set default role bypasses Replicate_Wild_Ignore_Table: mysql.%

Problem:
========
When replicating SET DEFAULT ROLE, the pre-update check (i.e. that
in set_var_default_role::check()) tries to validate the existence of
the given rules/user even when the targeted tables are ignored. When
previously issued CREATE USER/ROLE commands are ignored by the
replica because of the replication filtering rules, this results in
an error because the targeted data does not exist.

Solution:
========
Before checking that the given rules/user exist of a SET DEFAULT
ROLE command, first ensure that the mysql.user and
mysql.roles_mapping tables are not excluded by replication filters.

Reviewed By
============
Andrei Elkin <email address hidden>

c822836... by Igor Babaev

MDEV-28080 Crash when using HAVING with NOT EXIST predicate in an equality
MDEV-28082 Crash when using HAVING with IS NULL predicate in an equality

These bugs have been fixed by the patch for MDEV-26402.
Only test cases are added.

0beed9b... by Sergei Golubchik

MDEV-28097 use-after-free when WHERE has subquery with an outer reference in HAVING

when resolving WHERE and ON clauses, do not look in
SELECT list/aliases.

8c34eab... by Sergei Golubchik

MDEV-28094 Window function in expression in ORDER BY

call item->split_sum_func() in setup_order() just as
it's done in setup_fields()

bc9102e... by Sergei Golubchik

cleanup: (*order->item) -> item

and minor style fixes

7215b00... by Alexey Botchkov

MDEV-28431 auth_pam tool left zombie processes.

The faulure in username packet reading can lead to the
auth_plugin_tool zombie. So check and close the application.

af81040... by Sergei Golubchik

MDEV-28098 incorrect key in "dup value" error after long unique

reset errkey after using it, so that it wouldn't affect
the next error message in the next statement

0e4bc67... by Alexander Barkov

10.4 specific changes for "MDEV-27494 Rename .ic files to .inl"

Renaming ctype-uca.ic to ctype-uca.inl

This file was introduced in 10.4,
so it did not get to the main 10.2 patch for MDEV-27494

39feab3... by Igor Babaev

MDEV-26412 Server crash in Item_field::fix_outer_field for INSERT SELECT

IF an INSERT/REPLACE SELECT statement contained an ON expression in the top
level select and this expression used a subquery with a column reference
that could not be resolved then an attempt to resolve this reference as
an outer reference caused a crash of the server. This happened because the
outer context field in the Name_resolution_context structure was not set
to NULL for such references. Rather it pointed to the first element in
the select_stack.

Note that starting from 10.4 we cannot use the SELECT_LEX::outer_select()
method when parsing a SELECT construct.

Approved by Oleksandr Byelkin <email address hidden>

fccca49... by Julius Goryavsky <email address hidden>

MDEV-28377: galera_as_slave_nonprim bind: Address already in use

This commit fixes a crash reported as MDEV-28377 and a number
of other crashes in automated tests with mtr that are related
to broken .cnf files in galera and galera_3nodes suites, which
happened when automatically migrating MDEV-26171 from 10.3 to
subsequent higher versions.