mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
added test for bug #2290 "output truncated with ELT when using DISTINCT"
This commit is contained in:
@@ -1507,7 +1507,7 @@ void Item_func_elt::fix_length_and_dec()
|
||||
{
|
||||
max_length=0;
|
||||
decimals=0;
|
||||
for (uint i=1 ; i < arg_count ; i++)
|
||||
for (uint i= 0; i < arg_count ; i++) // first number argument isn't in list!
|
||||
{
|
||||
set_if_bigger(max_length,args[i]->max_length);
|
||||
set_if_bigger(decimals,args[i]->decimals);
|
||||
|
Reference in New Issue
Block a user