mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -2500,14 +2500,16 @@ print_key(KEY_PART *key_part,const char *key,uint used_length)
|
||||
fputc('/',DBUG_FILE);
|
||||
if (field->real_maybe_null())
|
||||
{
|
||||
length++;
|
||||
length++; // null byte is not in part_length
|
||||
if (*key++)
|
||||
{
|
||||
fwrite("NULL",sizeof(char),4,DBUG_FILE);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
field->set_key_image((char*) key,key_part->part_length);
|
||||
field->set_key_image((char*) key,key_part->part_length -
|
||||
((field->type() == FIELD_TYPE_BLOB) ?
|
||||
HA_KEY_BLOB_LENGTH : 0));
|
||||
field->val_str(&tmp,&tmp);
|
||||
fwrite(tmp.ptr(),sizeof(char),tmp.length(),DBUG_FILE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user