MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_locale_by_number

Function my_locale_by_number

sql/sql_locale.cc:3449–3458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3447
3448
3449MY_LOCALE *my_locale_by_number(uint number)
3450{
3451 MY_LOCALE *locale;
3452 if (number >= array_elements(my_locales) - 1)
3453 return NULL;
3454 locale= my_locales[number];
3455 // Check that locale is on its correct position in the array
3456 DBUG_ASSERT(locale == my_locales[locale->number]);
3457 return locale;
3458}
3459
3460
3461static MY_LOCALE*

Callers 1

check_localeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected