1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-04 17:23:46 +03:00
Files
mariadb/mysql-test/std_data
Alexander Barkov ef00ac4c86 Part2: MDEV-18156 Assertion 0' failed or btr_validate_index(index, 0, false)' in row_upd_sec_index_entry or error code 126: Index is corrupted upon DELETE with PAD_CHAR_TO_FULL_LENGTH
This patch allows the server to open old tables that have
"bad" generated columns (i.e. indexed virtual generated columns,
persistent generated columns) that depend on sql_mode,
for general things like SELECT, INSERT, DROP, etc.
Warning are issued in such cases.

Only these commands are now disallowed and return an error:
- CREATE TABLE introducing a "bad" generated column
- ALTER TABLE introducing a "bad" generated column
- CREATE INDEX introdicing a "bad" generated column
  (i.e. adding an index on a virtual generated column
   that depends on sql_mode).

Note, these commands are allowed:
- ALTER TABLE removing a "bad" generate column
- ALTER TABLE removing an index from a "bad" virtual generated column
- DROP INDEX removing an index from a "bad" virtual generated column
but only if the table does not have any "bad" columns as a result.
2019-09-03 09:51:35 +04:00
..
2019-03-01 12:41:05 -05:00
2019-05-13 17:54:04 +03:00
2010-10-01 15:32:03 +02:00
2006-12-06 21:47:29 +04:00
2007-12-23 11:18:46 +02:00
2007-12-23 11:18:46 +02:00
2008-03-28 23:39:47 +03:00
2011-03-08 09:41:57 +01:00
2019-05-11 21:29:06 +03:00
2019-03-01 12:41:05 -05:00
2009-10-12 11:22:53 +05:00
2017-07-18 14:59:33 +02:00
2003-09-25 00:14:46 +02:00
2019-03-01 12:41:05 -05:00
2019-03-01 12:41:05 -05:00
2019-03-01 12:41:05 -05:00