Commit 9595cc33 authored by unknown's avatar unknown

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

in SHOW CREATE TABLE if a temporary file cannot be created.
(Bug #13002)


sql/ha_innodb.cc:
  ha_innobase::get_foreign_key_create_info(): Display an error
  message to the user if a temporary file cannot be created.
parent f03bc6c5
...@@ -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