Commit d62b9f4b authored by marko@hundin.mysql.fi's avatar marko@hundin.mysql.fi

InnoDB: Display an error message in /* */ comments

in SHOW CREATE TABLE if a temporary file cannot be created.
(Bug #13002)
parent dec9e7bb
...@@ -4458,8 +4458,8 @@ ha_innobase::get_foreign_key_create_info(void) ...@@ -4458,8 +4458,8 @@ ha_innobase::get_foreign_key_create_info(void)
fclose(file); fclose(file);
} else { } else {
/* unable to create temporary file */ /* unable to create temporary file */
str = my_malloc(1, MYF(0)); str = my_strdup(
str[0] = 0; "/* Error: cannot display foreign key constraints */", MYF(0));
} }
return(str); return(str);
......
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