-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-31972 Change parameter of make_sp_name*() from LEX_CSTRING to Le…
…x_ident_sys_st Changing LEX_CSTRING* parameters of LEX::make_sp_name() to Lex_ident_sys_st. This makes the code clear because a value of Lex_ident_sys_st has some guaranteed additional constraints over a base LEX_CSTRING: - Its LEX_CSTRING::str is not NULL (sql_yacc.yy would abort otherwise) - Its LEX_CSTRING::str is 0-terminated - Its a valid utf8 string - The string pointed by LEX_CSTRING::str was created on THD::mem_root Also changing "pass by pointer" to "pass by reference", as these parameters can never be NULL - they are Bison stack variables.
- Loading branch information
Showing
3 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters