1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

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
This commit is contained in:
unknown
2001-02-13 08:43:14 +02:00
parent a00ef17fdb
commit 8a31e9f04d
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
** T<>nu Samuel <tonu@please.do.not.remove.this.spam.ee> ** 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 <global.h>
#include <my_sys.h> #include <my_sys.h>
@@ -808,7 +808,7 @@ static uint getTableStructure(char *table, char* db)
putc(',', sql_file); putc(',', sql_file);
fputs(quote_name(row[4],name_buff), sql_file); fputs(quote_name(row[4],name_buff), sql_file);
if (row[7]) if (row[7])
fprintf(sql_file, "(%s)",row[7]); /* Sub key */ fprintf(sql_file, " (%s)",row[7]); /* Sub key */
} }
if (keynr) if (keynr)
putc(')', sql_file); putc(')', sql_file);

View File

@@ -846,7 +846,7 @@ store_create_info(THD *thd, TABLE *table, String *packet)
if(i != primary_key) if(i != primary_key)
append_identifier(thd,packet,key_info->name); append_identifier(thd,packet,key_info->name);
packet->append('('); packet->append(" (", 2);
for (uint j=0 ; j < key_info->key_parts ; j++,key_part++) for (uint j=0 ; j < key_info->key_parts ; j++,key_part++)
{ {