summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2000-11-21 16:41:29 -0700
committerunknown <sasha@mysql.sashanet.com>2000-11-21 16:41:29 -0700
commit62c3b53667b31f99c7cbcd64ec8434ff3960cbe8 (patch)
tree5afdb1e2522ab29fea99ec99b46391792913a044 /sql/sql_show.cc
parent7dd56817a5069eb0210c8e590729973cd98a4acb (diff)
downloadmariadb-git-62c3b53667b31f99c7cbcd64ec8434ff3960cbe8.tar.gz
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
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc9
1 files changed, 8 insertions, 1 deletions
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);