summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2000-11-21 16:41:29 -0700
committersasha@mysql.sashanet.com <>2000-11-21 16:41:29 -0700
commit74fbeabbf86068eaee44c58e7151532442fc96d2 (patch)
tree5afdb1e2522ab29fea99ec99b46391792913a044 /sql
parent4f91d5b5fe1349c5bdf6be567dece52cc632d8e7 (diff)
downloadmariadb-git-74fbeabbf86068eaee44c58e7151532442fc96d2.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
Diffstat (limited to 'sql')
-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);