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:
15
sql/field.cc
15
sql/field.cc
@@ -1114,6 +1114,21 @@ bool Field::type_can_have_key_part(enum enum_field_types type)
|
||||
}
|
||||
|
||||
|
||||
void Field::make_sort_key(uchar *buff,uint length)
|
||||
{
|
||||
if (maybe_null())
|
||||
{
|
||||
if (is_null())
|
||||
{
|
||||
bzero(buff, length + 1);
|
||||
return;
|
||||
}
|
||||
*buff++= 1;
|
||||
}
|
||||
sort_string(buff, length);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Numeric fields base class constructor.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user