mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Add 0x before pointers (to help with debugging)
Add support for VARCHAR with 1 or 2 length bytes Enable VARCHAR packing in MyISAM files (previous patch didn't pack data properly) Give error if we got problems in temporary tables during a SELECT Don't use new table generated by ALTER TABLE if index generation fails Fixed wrong call by range_end() (Could cause an ASSERT in debug mode)
This commit is contained in:
@ -420,12 +420,15 @@ class store_key :public Sql_alloc
|
||||
:null_ptr(null),err(0)
|
||||
{
|
||||
if (field_arg->type() == FIELD_TYPE_BLOB)
|
||||
to_field=new Field_varstring(ptr, length, (uchar*) null, 1,
|
||||
{
|
||||
/* Key segments are always packed with a 2 byte length prefix */
|
||||
to_field=new Field_varstring(ptr, length, 2, (uchar*) null, 1,
|
||||
Field::NONE, field_arg->field_name,
|
||||
field_arg->table, field_arg->charset());
|
||||
}
|
||||
else
|
||||
{
|
||||
to_field=field_arg->new_field(thd->mem_root,field_arg->table);
|
||||
to_field=field_arg->new_key_field(thd->mem_root, field_arg->table);
|
||||
if (to_field)
|
||||
to_field->move_field(ptr, (uchar*) null, 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user