diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-03-18 10:35:03 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-03-18 10:35:03 +0100 |
commit | a4a18e0cbbaf2a43507b3c2232fed700403ad04d (patch) | |
tree | 9062f9793518f2f88b617e39f718a18d007298a5 /mysql-test/t/func_str.test | |
parent | 511b9432637510617b04bde92c51a184c1e3aea8 (diff) | |
download | mariadb-git-a4a18e0cbbaf2a43507b3c2232fed700403ad04d.tar.gz |
MDEV-4289 Assertion `0' fails in make_sortkey with GROUP_CONCAT, MAKE_SET, GROUP BY
Item_func_make_set wasn't taking into account the first argument when
calculating maybe_null.
sql/item_strfunc.cc:
rewrite Item_func_make_set, removing separate storage of the first argument
sql/item_strfunc.h:
rewrite Item_func_make_set, removing separate storage of the first argument
Diffstat (limited to 'mysql-test/t/func_str.test')
-rw-r--r-- | mysql-test/t/func_str.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_str.test b/mysql-test/t/func_str.test index 9909974d3be..f49fa633925 100644 --- a/mysql-test/t/func_str.test +++ b/mysql-test/t/func_str.test @@ -1390,5 +1390,12 @@ SELECT REPEAT('1', DAY(FROM_UNIXTIME(-1))); SELECT RPAD('hi', DAY(FROM_UNIXTIME(-1)),'?'); SELECT LPAD('hi', DAY(FROM_UNIXTIME(-1)),'?'); +# +# MDEV-4289 Assertion `0' fails in make_sortkey with GROUP_CONCAT, MAKE_SET, GROUP BY +# +create table t1 (i int); +insert into t1 values (null),(8); +select group_concat( i ), make_set( i, 'a', 'b' ) field from t1 group by field; +drop table t1; --echo End of 5.1 tests |