mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Change C_STRING_WITH_LEN to STRING_WITH_LEN
This preserves const str for constant strings Other things - A few variables where changed from LEX_STRING to LEX_CSTRING - Incident_log_event::Incident_log_event and record_incident where changed to take LEX_CSTRING* as an argument instead of LEX_STRING
This commit is contained in:
@ -652,10 +652,10 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
||||
{
|
||||
StringBuffer<128> buff(thd->variables.character_set_client);
|
||||
DBUG_ASSERT(buff.charset()->mbminlen == 1);
|
||||
const LEX_STRING command[3]=
|
||||
{{ C_STRING_WITH_LEN("CREATE ") },
|
||||
{ C_STRING_WITH_LEN("ALTER ") },
|
||||
{ C_STRING_WITH_LEN("CREATE OR REPLACE ") }};
|
||||
const LEX_CSTRING command[3]=
|
||||
{{ STRING_WITH_LEN("CREATE ") },
|
||||
{ STRING_WITH_LEN("ALTER ") },
|
||||
{ STRING_WITH_LEN("CREATE OR REPLACE ") }};
|
||||
|
||||
buff.append(&command[thd->lex->create_view->mode]);
|
||||
view_store_options(thd, views, &buff);
|
||||
|
Reference in New Issue
Block a user