diff options
author | unknown <serg@serg.mylan> | 2005-01-11 10:34:38 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-01-11 10:34:38 +0100 |
commit | 3cde206040151704c926b444907976965733082c (patch) | |
tree | 0ca4f7293d7e65265cf364ea996c901db984d432 | |
parent | eae30642cde74965e5f81dca61bd4448a1d889f6 (diff) | |
parent | fbff8b8e6523fc621fb5404c830f7d06958dae93 (diff) | |
download | mariadb-git-3cde206040151704c926b444907976965733082c.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
-rw-r--r-- | sql/sql_show.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index ba13dd1ff04..88a56d26e35 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -817,6 +817,7 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list) DBUG_RETURN(1); } + buffer.length(0); if (store_create_info(thd, table, &buffer)) DBUG_RETURN(-1); @@ -830,9 +831,6 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list) DBUG_RETURN(1); protocol->prepare_for_resend(); protocol->store(table->table_name, system_charset_info); - buffer.length(0); - if (store_create_info(thd, table, &buffer)) - DBUG_RETURN(-1); protocol->store(buffer.ptr(), buffer.length(), buffer.charset()); if (protocol->write()) DBUG_RETURN(1); |