1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-28 17:36:30 +03:00
Files
mariadb/mysql-test/r
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-11-15 19:21:40 +01:00
2018-09-10 16:47:44 +04:00
2018-11-06 08:41:48 +02:00
2019-05-04 17:04:55 +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
2020-06-06 18:07:04 +03:00
2019-05-04 17:04:55 +02:00
2018-11-06 08:41:48 +02:00
2017-10-24 14:53:18 +02:00
2018-08-21 15:20:34 +03:00
2019-04-25 09:04:09 +03:00
2019-05-04 17:04:55 +02:00
2018-12-21 09:43:35 +02:00
2020-06-11 22:35:30 +03:00
2019-09-23 08:26:08 +03:00
2018-06-21 23:47:39 +02:00
2020-04-14 16:13:35 +03:00
2019-09-18 16:24:48 +03:00
2019-08-20 09:15:28 +03:00
2018-06-21 23:47:39 +02:00
2019-03-04 16:46:58 +02:00
2018-11-06 08:41:48 +02:00
2019-05-04 17:04:55 +02:00
2018-11-06 08:41:48 +02:00
2017-04-01 14:15:18 +03:00
2019-06-12 22:54:46 +02:00
2017-06-19 16:46:34 +03:00
2017-07-05 17:15:57 +02:00
2019-04-24 11:15:38 +02:00
2020-02-07 13:40:08 +01:00
2018-06-10 17:16:27 +03:00
2017-07-05 19:08:55 +02:00
2019-04-25 09:04:09 +03:00
2019-09-23 08:26:08 +03:00
2020-06-06 18:07:04 +03:00
2019-03-15 21:00:41 +01:00
2019-07-20 09:09:28 +02:00
2019-07-26 13:33:51 +02:00
2019-10-25 12:57:36 +03:00
2019-03-26 17:38:54 +02:00
2019-07-25 13:27:11 +02:00
2020-04-14 16:13:35 +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
2018-08-02 08:19:57 +03:00
2019-07-01 13:15:20 +03:00
2019-02-03 17:22:05 +02:00
2019-02-03 17:22:05 +02:00
2020-05-26 13:01:34 +03:00
2020-05-26 13:01:34 +03:00
2019-03-15 21:00:41 +01:00
2019-10-11 18:38:18 +03:00
2018-04-24 09:39:45 +03:00
2018-05-10 13:01:42 +02:00
2019-03-15 21:00:41 +01:00
2019-03-01 12:41:05 -05:00
2019-03-01 12:41:05 -05:00
2019-05-04 17:04:55 +02:00
2020-05-15 22:43:33 +03:00
2017-06-08 12:45:08 +03:00
2019-10-25 12:57:36 +03:00
2019-10-25 12:57:36 +03:00
2017-09-19 12:43:02 +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
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
2017-10-02 11:16:53 +03:00
2019-03-15 21:00:41 +01:00