1
0
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:
Monty
2020-08-14 21:11:30 +03:00
committed by Sergei Golubchik
parent b6ff139aa3
commit 53b43f3078
4 changed files with 32 additions and 23 deletions

View File

@ -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(" "));
}
}