diff options
author | unknown <tfr@coyote.emotion.ee> | 2001-02-13 08:43:14 +0200 |
---|---|---|
committer | unknown <tfr@coyote.emotion.ee> | 2001-02-13 08:43:14 +0200 |
commit | 8a31e9f04d7ab99f61b7b2a85442996b98f9098d (patch) | |
tree | 5496a499d08c602fa2332736dbf7655ee0615711 | |
parent | a00ef17fdbfeb033c8a1030f3af38b9b687a505f (diff) | |
download | mariadb-git-8a31e9f04d7ab99f61b7b2a85442996b98f9098d.tar.gz |
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
-rw-r--r-- | client/mysqldump.c | 4 | ||||
-rw-r--r-- | 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 <tonu@please.do.not.remove.this.spam.ee> **/ -#define DUMP_VERSION "8.12" +#define DUMP_VERSION "8.13" #include <global.h> #include <my_sys.h> @@ -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++) { |