diff options
author | Gleb Shchepa <gshchepa@mysql.com> | 2008-09-03 12:32:43 +0500 |
---|---|---|
committer | Gleb Shchepa <gshchepa@mysql.com> | 2008-09-03 12:32:43 +0500 |
commit | 59b9d50c8a881e709e11da72d2617c7f66eb6b8b (patch) | |
tree | fe6888d75c8d2fc410f330e826b7d2b0bd77a918 /mysql-test/t/func_regexp.test | |
parent | 88d66418c8fb2fbd6b60968d1ad8962b2af56232 (diff) | |
download | mariadb-git-59b9d50c8a881e709e11da72d2617c7f66eb6b8b.tar.gz |
Bug #39002: The server crashes on the query:
INSERT .. SELECT .. ON DUPLICATE KEY UPDATE col=DEFAULT
In order to get correct values from update fields that
belongs to the SELECT part in the INSERT .. SELECT .. ON
DUPLICATE KEY UPDATE statement, the server adds referenced
fields to the select list. Part of the code that does this
transformation is shared between implementations of
the DEFAULT(col) function and the DEFAULT keyword (in
the col=DEFAULT expression), and an implementation of
the DEFAULT keyword is incomplete.
mysql-test/r/default.result:
Added test case for bug #39002.
mysql-test/t/default.test:
Added test case for bug #39002.
sql/item.cc:
The Item_default_value::transform() function has been
modified to take into account the fact that the DEFAULT
keyword has no arguments unlike the DEFAULT(col) function
that always has an argument.
Diffstat (limited to 'mysql-test/t/func_regexp.test')
0 files changed, 0 insertions, 0 deletions