maria:bb-11.0-mdev-28152-alter-value-type

Last commit made on 2023-03-07
Get this branch:
git clone -b bb-11.0-mdev-28152-alter-value-type https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.0-mdev-28152-alter-value-type
Repository:
lp:maria

Recent commits

1aa3022... by Yuchen Pei

MDEV-28152 wip wip wip alter sequence as <new_value_type>

Basic case:
- start with a narrow value type, the alter to a wider type without
  changing any other metadata

Advanced cases to fix once the basic case works:
- start with a wider value type, then alter to a narrower type with
  smaller metadata values in range for the narrower value type
- start with a narrower value type, then alter to a wider type with
  bigger metadata values out of range for the narrower type but in
  range for the wider type

3758c11... by Yuchen Pei

MDEV-28152 wip wip wip sequence support for unsigned types

Works: create, alter (except types), next, etc.
Passing tests in the sql_sequence suites.

86de48a... by Yuchen Pei

MDEV-28152 create sequences with various signed value types

- Support signed types. Unsigned types to be worked out in the next patch.
- Sequence (definition) tables uses the value type for the field type
  of minvalue, maxvalue, startvalue, next_not_cached_value, so that
  the value type can be inferred from this type.

f69ea45... by Yuchen Pei

MDEV-28152 Create sequence truncating out-of-bound max/minvalue

This is item 2 of MDEV-28152. When creating a sequence with a huge
minvalue / maxvalue, truncate it to the nearest valid value for the
type, i.e. LONGLONG_MAX - 1 for values >= LONGLONG_MAX and
LONGLONG_MIN + 1 for values <= LONGLONG_MIN

ce4a289... by Daniel Black

MDEV-30448 No deprecation message shown for mysql_fix_extensions

3622644... by Christian Gonzalez <email address hidden>

MDEV-30498 Rename mysql_upgrade state file to mariadb_upgrade

Renames the upgrade state file, and ensures the old
file is properly removed when `mariadb-upgrade` tool is executed.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer
Amazon Web Services, Inc.

d6e3d89... by Sergei Golubchik

MDEV-29668 SUPER should not allow actions that have fine-grained dedicated privileges

SUPER privilege used to allow various actions that were alternatively
allowed by one of BINLOG ADMIN, BINLOG MONITOR, BINLOG REPLAY,
CONNECTION ADMIN, FEDERATED ADMIN, REPL MASTER ADMIN, REPL SLAVE ADMIN,
SET USER, SLAVE MONITOR.

Now SUPER no longer does that, one has to grant one of the fine-grained
privileges above to be to perform corresponding actions.

On upgrade from MariaDB versions 10.11 and below all the privileges
above are granted automatically if the user has SUPER.

As a side-effect, such an upgrade will allow SUPER-user to run SHOW
BINLOG EVENTS, SHOW RELAYLOG EVENTS, SHOW SLAVE HOSTS, even if he wasn't
able to do it before the upgrade.

0ac5132... by Sergei Golubchik

MDEV-29227 deprecate explicit_defaults_for_timestamp=0

760d149... by Sergei Golubchik

MDEV-30128 remove support for 5.1- replication events

including patches from Andrei Elkin

42f53c7... by Andrew Hutchings

Add CODING_STANDARDS.md file

This is intended to be the start of a (not complete) coding standards
document we can refer contributors to. This can be modified to add more
nuances and become stricter over time. It can also have additional
content for other file types (CMake, YACC, etc).

It does not cover plugins which should each individually have their own coding
standards.