diff options
author | unknown <bell@sanja.is.com.ua> | 2005-09-16 09:15:45 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-09-16 09:15:45 +0300 |
commit | e1ff851ec94eefa820335a09577b50df783486ff (patch) | |
tree | 83f53d8a5d7fc02da4165ef81ec3f977e98c96ee /sql/sql_show.cc | |
parent | 31566bd710aa39c5d6dba6cc783cf3a9a818d725 (diff) | |
download | mariadb-git-e1ff851ec94eefa820335a09577b50df783486ff.tar.gz |
fixed length detection
sql/sql_show.cc:
fixed typo
fixed length detection
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 929bf36d305..2b941474de8 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2952,7 +2952,7 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables, CHARSET_INFO *cs= system_charset_info; DBUG_ENTER("get_schema_views_record"); char definer[HOSTNAME_LENGTH + USERNAME_LENGTH + 2]; - uint defiler_len; + uint definer_len; if (!res) { if (tables->view) @@ -2977,9 +2977,9 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables, table->field[5]->store(STRING_WITH_LEN("YES"), cs); else table->field[5]->store(STRING_WITH_LEN("NO"), cs); - defiler_len= (strxmov(definer, tables->definer.user.str, "@", - tables->definer.host.str, NullS) - definer) - 1; - table->field[6]->store(definer, defiler_len, cs); + definer_len= (strxmov(definer, tables->definer.user.str, "@", + tables->definer.host.str, NullS) - definer); + table->field[6]->store(definer, definer_len, cs); if (tables->view_suid) table->field[7]->store(STRING_WITH_LEN("DEFINER"), cs); else |