1
0
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:
vva@eagle.mysql.r18.ru
2004-01-21 02:18:51 +04:00
parent f982614ae2
commit 4a668f95ce
3 changed files with 17 additions and 1 deletions

View File

@@ -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);