mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
5.5 merge
This commit is contained in:
@@ -1595,8 +1595,12 @@ void Item_sum_count::clear()
|
||||
|
||||
bool Item_sum_count::add()
|
||||
{
|
||||
if (!args[0]->maybe_null || !args[0]->is_null())
|
||||
count++;
|
||||
for (uint i=0; i<arg_count; i++)
|
||||
{
|
||||
if (args[i]->maybe_null && args[i]->is_null())
|
||||
return 0;
|
||||
}
|
||||
count++;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user