diff options
author | Martin Hansson <martin.hansson@oracle.com> | 2011-01-12 09:55:31 +0100 |
---|---|---|
committer | Martin Hansson <martin.hansson@oracle.com> | 2011-01-12 09:55:31 +0100 |
commit | 3c5662c1951f59295a41b05274ed0be793b01843 (patch) | |
tree | 06930793ac389b84570ac6701c4ee37b3c58c77d /sql/parse_file.cc | |
parent | 0fd846bad057cc205a5b5742c0d8c61c7c73c7f6 (diff) | |
download | mariadb-git-3c5662c1951f59295a41b05274ed0be793b01843.tar.gz |
Bug#58207: invalid memory reads when using default column value and
tmptable needed
The function DEFAULT() works by modifying the the data buffer pointers (often
referred to as 'record' or 'table record') of its argument. This modification
is done during name resolution (fix_fields().) Unfortunately, the same
modification is done when creating a temporary table, because default values
need to propagate to the new table.
Fixed by skipping the pointer modification for fields that are arguments to
the DEFAULT function.
Diffstat (limited to 'sql/parse_file.cc')
0 files changed, 0 insertions, 0 deletions