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
commit 62e320c86d
82 changed files with 2374 additions and 2319 deletions

View file

@ -1,7 +1,7 @@
SHOW CREATE TABLE INFORMATION_SCHEMA.MROONGA_STATS;
Table Create Table
Mroonga_stats CREATE TEMPORARY TABLE `Mroonga_stats` (
`VERSION` varchar(40) NOT NULL DEFAULT '',
`rows_written` int(11) NOT NULL DEFAULT 0,
`rows_read` int(11) NOT NULL DEFAULT 0
`VERSION` varchar(40) NOT NULL,
`rows_written` int(11) NOT NULL,
`rows_read` int(11) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8