MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
unknown 5b71281467 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.


include/typelib.h:
  Added copy_typelib() declaration
mysql-test/r/sp.result:
  Added a testcase for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache"
mysql-test/t/sp.test:
  Added a testcase for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache"
mysys/typelib.c:
  Added copy_typelib() definition
sql/field.cc:
  Create a copy of the internal 'typelib' structure when copying Field_enum of Field_set objects.
sql/field.h:
  Override new_field method in Field_enum (and Field_set) to copy the typelib structure.
2006-12-14 20:58:07 +03:00
bdb make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
BitKeeper Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug18761/my50-bug18761 2006-11-13 13:19:13 -05:00
BUILD
client Bug#19799 delimiter command not working correctly when sourcing a sql file 2006-11-21 21:10:02 -05:00
cmd-line-utils
config/ac-macros Use a direct reference to the yassl and taocrypt libtool libraries to link with 2006-09-21 11:37:08 +02:00
dbug make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
Docs Merge mysql.com:/Users/kent/mysql/bk/lic/my41-lic 2006-11-07 22:55:19 +01:00
extra Netware uses size_t as socklen_t 2006-10-23 13:26:04 +02:00
heap make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
include Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache" 2006-12-14 20:58:07 +03:00
innobase This ChangeSet must be null-merged to 5.0. Applied innodb-4.1-ss33 2006-11-09 05:03:35 +01:00
libmysql make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
libmysql_r
libmysqld Bug #23427: incompatible ABI change in 5.0.26? 2006-10-20 17:17:24 -04:00
man
myisam Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint 2006-11-03 16:18:32 +01:00
myisammrg Merge shellback.(none):/home/msvensson/mysql/mysql-5.0 2006-10-03 01:01:06 +02:00
mysql-test Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache" 2006-12-14 20:58:07 +03:00
mysys Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache" 2006-12-14 20:58:07 +03:00
ndb Merge bodhi.local:/opt/local/work/mysql-4.1-runtime 2006-11-02 02:38:41 +03:00
netware Replace all refernces to .la libraries with direct references 2006-10-24 13:12:34 +02:00
os2
pstack
regex make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
scripts Add ALTER TABLE MODIFY statements in addition to the ALTER TABLE ADD for new 2006-11-21 16:31:44 +01:00
server-tools Instance Manager polishing. 2006-10-20 22:26:40 +04:00
sql Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache" 2006-12-14 20:58:07 +03:00
sql-bench
sql-common Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1-maint 2006-11-22 14:06:37 +04:00
SSL
strings Merge polly.local:/tmp/maint/bug22129/my50-bug22129 2006-11-14 16:38:11 +03:00
support-files This command is not portable, as POSIX does not require it; use . instead. 2006-11-16 23:39:02 +01:00
tests Bug#19817 error when try to compile PHP5.1 with mysql 5.0.21 static libs 2006-11-13 17:16:37 +01:00
tools Bug#19817 error when try to compile PHP5.1 with mysql 5.0.21 static libs 2006-11-13 17:16:37 +01:00
VC++Files
vio Bug#19817 error when try to compile PHP5.1 with mysql 5.0.21 static libs 2006-11-13 17:16:37 +01:00
win
zlib Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint 2006-09-18 10:37:26 +05:00
.bzrignore Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint 2006-10-24 21:05:35 +02:00
.cvsignore
CMakeLists.txt Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0.27-release 2006-10-21 01:13:50 +02:00
configure.in Merge bk-internal:/home/bk/mysql-5.0 2006-11-08 11:40:33 +01:00
COPYING
Makefile.am Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint 2006-11-13 19:19:02 +01:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.