mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merged some functions and removed some unused client functions.
Remember UNION for ALTER TABLE Added test for if we are supporting transactions. Don't allow REPLACE to replace a row when we have generated an auto_increment key Fixed bug when using BLOB keys Fixed bug in SET @variable=user.
This commit is contained in:
@ -331,16 +331,15 @@ static bool find_range_key(TABLE_REF *ref, Field* field, COND *cond)
|
||||
part != part_end ;
|
||||
part++)
|
||||
{
|
||||
if (!part_of_cond(cond,part->field))
|
||||
if (!part_of_cond(cond,part->field) ||
|
||||
left_length < part->store_length)
|
||||
break;
|
||||
// Save found constant
|
||||
if (part->null_bit)
|
||||
*key_ptr++= (byte) test(part->field->is_null());
|
||||
if (left_length - part->length < 0)
|
||||
break; // Can't use this key
|
||||
part->field->get_image((char*) key_ptr,part->length);
|
||||
key_ptr+=part->length;
|
||||
left_length-=part->length;
|
||||
part->field->get_key_image((char*) key_ptr,part->length);
|
||||
key_ptr+=part->store_length - test(part->null_bit);
|
||||
left_length-=part->store_length;
|
||||
}
|
||||
if (part == part_end && part->field == field)
|
||||
{
|
||||
|
Reference in New Issue
Block a user