From 62c3b53667b31f99c7cbcd64ec8434ff3960cbe8 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 21 Nov 2000 16:41:29 -0700 Subject: client/mysqltest.c generate a bigger reject file ( full in most cases) if the master result file is 0 length sql/sql_show.cc fixed 3 bugs in SHOW CREATE TABLE New test case shw000001 for SHOW CREATE TABLE bugs BitKeeper/etc/ignore: Added BitKeeper/tmp/bkOF1wtJ scripts/mysqldumpslow to the ignore list client/mysqltest.c: generate a bigger reject file ( full in most cases) if the master result file is 0 length sql/sql_show.cc: fixed 3 bugs in SHOW CREATE TABLE --- sql/sql_show.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sql/sql_show.cc') diff --git a/sql/sql_show.cc b/sql/sql_show.cc index eb7e1455297..a9e43198d5a 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -732,7 +732,8 @@ store_create_info(THD *thd, TABLE *table, String *packet) type.set(tmp,sizeof(tmp)); field->val_str(&type,&type); packet->append('\''); - packet->append(type.ptr(),type.length()); + if(type.length()) + append_unescaped(packet, type.c_ptr()); packet->append('\''); } else if (field->maybe_null()) @@ -818,6 +819,12 @@ store_create_info(THD *thd, TABLE *table, String *packet) packet->append(" CHECKSUM=1", 11); if (table->db_create_options & HA_OPTION_DELAY_KEY_WRITE) packet->append(" DELAY_KEY_WRITE=1",18); + if(table->comment) + { + packet->append(" COMMENT='", 10); + append_unescaped(packet, table->comment); + packet->append('\''); + } DBUG_RETURN(0); -- cgit v1.2.1