1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-18918 SQL mode EMPTY_STRING_IS_NULL breaks RBR upon CREATE TABLE .. SELECT

The 10.5 version of the patch.

Removing DEFAULT from INFORMATION_SCHEMA columns.
DEFAULT in read-only tables is rather meaningless.
Upgrade should go smoothly.

Also fixes:
 MDEV-20254 Problems with EMPTY_STRING_IS_NULL and I_S tables
This commit is contained in:
Alexander Barkov
2021-12-28 17:43:40 +04:00
parent e4b302e436
commit 62e320c86d
82 changed files with 2374 additions and 2319 deletions

View File

@@ -1,14 +1,14 @@
SHOW CREATE TABLE INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION;
Table Create Table
INNODB_TABLESPACES_ENCRYPTION CREATE TEMPORARY TABLE `INNODB_TABLESPACES_ENCRYPTION` (
`SPACE` int(11) unsigned NOT NULL DEFAULT 0,
`NAME` varchar(655) DEFAULT NULL,
`ENCRYPTION_SCHEME` int(11) unsigned NOT NULL DEFAULT 0,
`KEYSERVER_REQUESTS` int(11) unsigned NOT NULL DEFAULT 0,
`MIN_KEY_VERSION` int(11) unsigned NOT NULL DEFAULT 0,
`CURRENT_KEY_VERSION` int(11) unsigned NOT NULL DEFAULT 0,
`KEY_ROTATION_PAGE_NUMBER` bigint(21) unsigned DEFAULT NULL,
`KEY_ROTATION_MAX_PAGE_NUMBER` bigint(21) unsigned DEFAULT NULL,
`CURRENT_KEY_ID` int(11) unsigned NOT NULL DEFAULT 0,
`ROTATING_OR_FLUSHING` int(1) NOT NULL DEFAULT 0
`SPACE` int(11) unsigned NOT NULL,
`NAME` varchar(655),
`ENCRYPTION_SCHEME` int(11) unsigned NOT NULL,
`KEYSERVER_REQUESTS` int(11) unsigned NOT NULL,
`MIN_KEY_VERSION` int(11) unsigned NOT NULL,
`CURRENT_KEY_VERSION` int(11) unsigned NOT NULL,
`KEY_ROTATION_PAGE_NUMBER` bigint(21) unsigned,
`KEY_ROTATION_MAX_PAGE_NUMBER` bigint(21) unsigned,
`CURRENT_KEY_ID` int(11) unsigned NOT NULL,
`ROTATING_OR_FLUSHING` int(1) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8