[MDEV-31991] Split class Database_qualified_name Created: 2023-08-23 Updated: 2023-12-27 Resolved: 2023-08-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Stored routines |
| Fix Version/s: | 11.3.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Class Database_qualified_name is currently used for two purposes when handling package routines such as `db.pkg.func`:
The data type of Database_qualified_name::m_name will be changed from LEX_CSTRING to Lex_ident_db soon, so it will contain a validated and normalized database name, which means lower-cased if lower-case-table-names says so. Therefore, Database_qualified_name won't be able to store `pkg.func` pairs any more - the `pkg` part must not depend on lower-case-table-names. Let's add a new class Identifier_chain2 and move the following methods from Database_qualified_name to Identifier_chain2, as follows:
Also, let's change the data type of the following variables from Database_qualified_name to Identifier_chain2:
|