1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-20 10:24:14 +03:00
Files
mariadb/mysql-test/suite/versioning/t
Aleksey Midenkov 74883f5e2f MDEV-32082 Server crash in find_field_in_table
Attempt to resolve FOR SYSTEM_TIME expression as field for derived
table is done before derived table is fully prepared, so we fail on
assertion that table_list->table is missing.

Actually Vers_history_point::resolve_unit() is done under the call of
mysql_derived_prepare() itself (sql_derived.cc:824) and the table is
assigned later at 867.

The fix disables unit resolution for field type in FOR SYSTEM_TIME
expression as it does a little sense in any case: making historical
queries based on variable field values produces the result of multiple
time points.

fix_fields_if_needed() in resolve_units() was introduced by 46be31982a
2023-11-10 15:46:15 +03:00
..
2022-01-30 09:46:52 +01:00
2019-09-03 13:17:32 +03:00
2022-04-06 08:59:09 +03:00
2023-01-03 16:10:02 +02:00
2019-09-03 13:17:32 +03:00
2019-10-10 21:30:40 +03:00
2019-06-17 12:26:25 +02:00
2021-07-31 22:59:58 +02:00
2022-01-30 09:46:52 +01:00
2019-10-10 00:20:34 +03:00