| 430 | } |
| 431 | |
| 432 | int fill_collation_statistics(THD *thd, TABLE_LIST *tables) |
| 433 | { |
| 434 | TABLE *table= tables->table; |
| 435 | for (uint id= 1; id < MY_ALL_CHARSETS_SIZE; id++) |
| 436 | { |
| 437 | ulonglong count; |
| 438 | if (my_collation_is_known_id(id) && |
| 439 | (count= my_collation_statistics_get_use_count(id))) |
| 440 | { |
| 441 | char name[MY_CS_COLLATION_NAME_SIZE + 32]; |
| 442 | size_t namelen= my_snprintf(name, sizeof(name), |
| 443 | "Collation used %s", |
| 444 | get_charset_name(id)); |
| 445 | INSERT2(name, namelen, (count, UNSIGNED)); |
| 446 | } |
| 447 | } |
| 448 | return 0; |
| 449 | }; |
| 450 | } // namespace feedback |
no test coverage detected