1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug#15447 Partitions: NULL is treated as zero

NULL value handling
This commit is contained in:
gluh@eagle.intranet.mysql.r18.ru
2006-03-07 15:25:08 +04:00
parent 1e0289041c
commit bcf710e97c
11 changed files with 221 additions and 12 deletions

View File

@ -3832,6 +3832,12 @@ static int get_schema_partitions_record(THD *thd, struct st_table_list *tables,
uint no_items= part_elem->list_val_list.elements;
tmp_str.length(0);
tmp_res.length(0);
if (part_elem->has_null_value)
{
tmp_str.append("NULL");
if (no_items > 0)
tmp_str.append(",");
}
while ((list_value= list_val_it++))
{
tmp_res.set(*list_value, cs);