| 387 | */ |
| 388 | |
| 389 | bool load_db_opt_by_name(THD *thd, const char *db_name, |
| 390 | HA_CREATE_INFO *db_create_info) |
| 391 | { |
| 392 | char db_opt_path[FN_REFLEN + 1]; |
| 393 | |
| 394 | /* |
| 395 | Pass an empty file name, and the database options file name as extension |
| 396 | to avoid table name to file name encoding. |
| 397 | */ |
| 398 | (void) build_table_filename(db_opt_path, sizeof(db_opt_path) - 1, |
| 399 | db_name, "", MY_DB_OPT_FILE, 0); |
| 400 | |
| 401 | return load_db_opt(thd, db_opt_path, db_create_info); |
| 402 | } |
| 403 | |
| 404 | |
| 405 | /** |
no test coverage detected