From 8a31e9f04d7ab99f61b7b2a85442996b98f9098d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 13 Feb 2001 08:43:14 +0200 Subject: [PATCH] mysqldump.c Fix to add space between index name and column definition in CREATE TABLE statement sql_show.cc Fix to add space in SHOW CREATE TABLE between index name and column definitions sql/sql_show.cc: Fix to add space in SHOW CREATE TABLE between index name and column definitions client/mysqldump.c: Fix to add space between index name and column definition in CREATE TABLE statement --- client/mysqldump.c | 4 ++-- sql/sql_show.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/mysqldump.c b/client/mysqldump.c index efb632cf5e4..ce6c64aa00e 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -37,7 +37,7 @@ ** Tõnu Samuel **/ -#define DUMP_VERSION "8.12" +#define DUMP_VERSION "8.13" #include #include @@ -808,7 +808,7 @@ static uint getTableStructure(char *table, char* db) putc(',', sql_file); fputs(quote_name(row[4],name_buff), sql_file); if (row[7]) - fprintf(sql_file, "(%s)",row[7]); /* Sub key */ + fprintf(sql_file, " (%s)",row[7]); /* Sub key */ } if (keynr) putc(')', sql_file); diff --git a/sql/sql_show.cc b/sql/sql_show.cc index ecc31c4c57e..eda6731307b 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -846,7 +846,7 @@ store_create_info(THD *thd, TABLE *table, String *packet) if(i != primary_key) append_identifier(thd,packet,key_info->name); - packet->append('('); + packet->append(" (", 2); for (uint j=0 ; j < key_info->key_parts ; j++,key_part++) {