Commit 9f6580ae authored by unknown's avatar unknown

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
parent ff9ca9a3
......@@ -37,7 +37,7 @@
** Tnu 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);
......
......@@ -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++)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment