1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/include
kaa@polly.local 4162e009cb Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache"
Problem:
When creating a temporary field for a temporary table in create_tmp_field_from_field(), a resulting field is created as an exact copy of an original one (in Field::new_field()). However, Field_enum and Field_set contain a pointer (typelib) to memory allocated in the parent table's MEM_ROOT, which under some circumstances may be deallocated later by the time a temporary table is used.

Solution:
Override the new_field() method for Field_enum and Field_set and create a separate copy of the typelib structure in there.
2006-12-14 20:58:07 +03:00
..
2005-10-14 01:14:23 +02:00
2005-05-05 20:06:49 +05:00
2005-11-08 00:26:37 -05:00
2005-08-24 22:03:34 +03:00
2005-08-24 22:03:34 +03:00
2006-10-12 13:50:22 +05:00
2004-09-01 04:12:09 +03:00
2006-06-30 20:07:33 +03:00
2004-07-28 21:46:22 +02:00
2004-11-21 11:51:19 +03:00
2005-07-28 17:09:54 +03:00