mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 21:55:33 +02:00
Don't want host in the definer's column.
This commit is contained in:
parent
cabd28c68c
commit
8630ca9a09
2 changed files with 6 additions and 8 deletions
|
|
@ -265,7 +265,6 @@ db_create_routine(THD *thd, int type, sp_head *sp)
|
|||
int ret;
|
||||
TABLE *table;
|
||||
TABLE_LIST tables;
|
||||
char creator[HOSTNAME_LENGTH+USERNAME_LENGTH+2];
|
||||
|
||||
memset(&tables, 0, sizeof(tables));
|
||||
tables.db= (char*)"mysql";
|
||||
|
|
@ -276,7 +275,6 @@ db_create_routine(THD *thd, int type, sp_head *sp)
|
|||
else
|
||||
{
|
||||
restore_record(table, default_values); // Get default values for fields
|
||||
strxmov(creator, thd->user, "@", thd->host_or_ip, NullS);
|
||||
|
||||
if (table->fields != MYSQL_PROC_FIELD_COUNT)
|
||||
{
|
||||
|
|
@ -302,7 +300,7 @@ db_create_routine(THD *thd, int type, sp_head *sp)
|
|||
table->field[MYSQL_PROC_FIELD_BODY]->
|
||||
store(sp->m_body.str, sp->m_body.length, system_charset_info);
|
||||
table->field[MYSQL_PROC_FIELD_DEFINER]->
|
||||
store(creator, (uint)strlen(creator), system_charset_info);
|
||||
store(thd->user, (uint)strlen(thd->user), system_charset_info);
|
||||
((Field_timestamp *)table->field[MYSQL_PROC_FIELD_CREATED])->set_time();
|
||||
table->field[MYSQL_PROC_FIELD_SQL_MODE]->
|
||||
store((longlong)thd->variables.sql_mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue