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:
@ -76,7 +76,7 @@ void key_copy(byte *key,TABLE *table,uint idx,uint key_length)
|
||||
KEY_PART_INFO *key_part;
|
||||
|
||||
if (key_length == 0)
|
||||
key_length=key_info->key_length+key_info->extra_length;
|
||||
key_length=key_info->key_length;
|
||||
for (key_part=key_info->key_part;
|
||||
(int) key_length > 0 ;
|
||||
key_part++)
|
||||
@ -122,7 +122,7 @@ void key_restore(TABLE *table,byte *key,uint idx,uint key_length)
|
||||
{
|
||||
if (idx == (uint) -1)
|
||||
return;
|
||||
key_length=key_info->key_length+key_info->extra_length;
|
||||
key_length=key_info->key_length;
|
||||
}
|
||||
for (key_part=key_info->key_part;
|
||||
(int) key_length > 0 ;
|
||||
|
Reference in New Issue
Block a user