mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Changed KEY names to use LEX_CSTRING
This commit is contained in:
committed by
Sergei Golubchik
parent
874e4e473a
commit
cc77f9882d
@@ -1193,8 +1193,8 @@ static void set_keys(PFS_table_share *pfs, const TABLE_SHARE *share)
|
||||
|
||||
for ( ; pfs_key < pfs_key_last; pfs_key++, key_info++)
|
||||
{
|
||||
len= strlen(key_info->name);
|
||||
memcpy(pfs_key->m_name, key_info->name, len);
|
||||
len= key_info->name.length;
|
||||
memcpy(pfs_key->m_name, key_info->name.str, len);
|
||||
pfs_key->m_name_length= len;
|
||||
}
|
||||
|
||||
@@ -1215,11 +1215,11 @@ static int compare_keys(PFS_table_share *pfs, const TABLE_SHARE *share)
|
||||
|
||||
for ( ; pfs_key < pfs_key_last; pfs_key++, key_info++)
|
||||
{
|
||||
len= strlen(key_info->name);
|
||||
len= key_info->name.length;
|
||||
if (len != pfs_key->m_name_length)
|
||||
return 1;
|
||||
|
||||
if (memcmp(pfs_key->m_name, key_info->name, len) != 0)
|
||||
if (memcmp(pfs_key->m_name, key_info->name.str, len) != 0)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user