mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 20:25:32 +02:00
RENAME TABLE table_name TO new_table_name ; Faster Alloc
Small bug fixes
This commit is contained in:
parent
86f4dbe20e
commit
aa3580924b
66 changed files with 544 additions and 280 deletions
|
|
@ -839,6 +839,10 @@ bool Item_sum_count_distinct::add()
|
|||
copy_fields(tmp_table_param);
|
||||
copy_funcs(tmp_table_param->funcs);
|
||||
|
||||
for (Field **field=table->field ; *field ; field++)
|
||||
if ((*field)->is_real_null(0))
|
||||
return 0; // Don't count NULL
|
||||
|
||||
if ((error=table->file->write_row(table->record[0])))
|
||||
{
|
||||
if (error != HA_ERR_FOUND_DUPP_KEY &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue