1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-28 17:36:30 +03:00
Files
mariadb/mysql-test/t
Alexander Barkov b46b7144d1 MDEV-21695 Server crashes in TABLE::evaluate_update_default_function upon UPDATE on temporary table
copy_data_between_tables() sets to->s->default_fields to 0, as a part
of the code disabling ON UPDATE actions for all old fields
(so ON UPDATE is enable only for new fields during copying).
After the actual copying, copy_data_between_tables() did not restore
to->s->default_fields to the original value. As a result, the
TABLE_SHARE to->s was left in a wrong state after copy_data_between_tables()
and further open_table_from_share() using this TABLE_SHARE did not
populate TABLE::default_field, which further made
TABLE::evaluate_update_default_function() crash on access to NULL
pointer.

Fix:
Changing copy_data_between_tables() to restore to->s->default_fields
to its original value after the copying loop.
2020-06-17 11:19:50 +04:00
..
2018-05-07 17:19:35 +02:00
2018-11-15 19:21:40 +01:00
2018-08-02 08:19:57 +03:00
2018-08-02 08:19:57 +03:00
2018-08-02 08:19:57 +03:00
2018-11-06 08:41:48 +02:00
2018-11-06 08:41:48 +02:00
2020-06-06 18:07:04 +03:00
2020-06-06 18:07:04 +03:00
2020-06-06 18:07:04 +03:00
2020-06-06 18:07:04 +03:00
2020-06-06 18:07:04 +03:00
2019-03-27 12:26:11 +02:00
2019-03-27 12:26:11 +02:00
2020-01-03 12:40:38 +01:00
2018-11-06 08:41:48 +02:00
2017-07-05 19:08:55 +02:00
2017-10-24 14:53:18 +02:00
2020-01-03 12:40:38 +01:00
2019-04-27 11:28:50 +02:00
2019-04-25 09:04:09 +03:00
2019-05-04 17:04:55 +02:00
2020-06-11 22:35:30 +03:00
2018-06-21 23:47:39 +02:00
2020-04-01 10:24:36 +03:00
2019-03-27 12:26:11 +02:00
2019-03-04 16:46:58 +02:00
2017-09-18 10:12:23 +02:00
2018-11-06 08:41:48 +02:00
2017-07-05 17:15:57 +02:00
2019-04-24 11:15:38 +02:00
2019-04-24 11:15:38 +02:00
2019-07-18 13:10:09 +03:00
2020-04-01 09:19:37 +03:00
2018-04-10 17:43:18 +03:00
2019-04-25 09:04:09 +03:00
2019-03-15 21:00:41 +01:00
2019-09-23 08:26:08 +03:00
2020-06-06 18:07:04 +03:00
2019-10-11 18:38:18 +03:00
2019-07-20 09:09:28 +02:00
2019-07-26 13:33:51 +02:00
2020-06-11 22:35:30 +03:00
2020-04-14 16:13:35 +03:00
2020-04-14 16:13:35 +03:00
2018-12-30 18:30:29 +01:00
2019-02-03 17:22:05 +02:00
2020-05-26 13:01:34 +03:00
2018-04-24 09:39:45 +03:00
2019-09-11 08:48:00 +03:00
2019-03-01 12:41:05 -05:00
2019-03-01 12:41:05 -05:00
2020-05-15 22:43:33 +03:00
2019-02-02 13:00:15 +02:00
2019-10-25 12:57:36 +03:00
2019-05-04 17:04:55 +02:00
2019-03-29 10:58:20 +01:00
2019-03-26 14:17:19 +02:00
2018-09-24 11:46:08 +02:00
2019-12-23 07:14:51 +02:00
2020-05-13 11:12:31 +03:00
2019-03-15 21:00:41 +01:00
2020-05-18 09:43:58 +03:00
2019-05-04 17:04:55 +02:00
2018-02-06 14:50:50 +01:00