mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added full_name_cstring()
This returns a LEX_CSTRING and allows one to avoid strlen() calls.
This commit is contained in:
@ -189,8 +189,7 @@ TEST_join(JOIN *join)
|
||||
JOIN_TAB *tab= jt_range->start + i;
|
||||
for (ref= 0; ref < tab->ref.key_parts; ref++)
|
||||
{
|
||||
const char *full_name=(tab->ref.items[ref]->full_name());
|
||||
ref_key_parts[i].append(full_name, strlen(full_name));
|
||||
ref_key_parts[i].append(tab->ref.items[ref]->full_name_cstring());
|
||||
ref_key_parts[i].append(STRING_WITH_LEN(" "));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user