1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-31978 Turn ok_for_lower_case_names() to a method in Lex_ident_fs

- Changing the global function ok_for_lower_case_names()
  into a method in class Lex_ident_fs.

- Changing a few functions/methods to get the database name
  as a "const LEX_CSTRING" instead of a "const char *".
  All these functions/methods use ok_for_lower_case_names()
  inside. This change helps to avoid new strlen() calls, and also
  removes a few old strlen() calls.
This commit is contained in:
Alexander Barkov
2023-08-22 12:27:51 +04:00
parent 7a7296bd1e
commit ebbf5662ef
15 changed files with 51 additions and 53 deletions

View File

@@ -485,7 +485,7 @@ protected:
my_bool using_transactions);
/* Remove all queries that uses any of the tables in following database */
void invalidate(THD *thd, const char *db);
void invalidate(THD *thd, const LEX_CSTRING &db);
/* Remove all queries that uses any of the listed following table */
void invalidate_by_MyISAM_filename(const char *filename);