From d62b9f4b4b64532e296c9dc58b2102b3cfec981f Mon Sep 17 00:00:00 2001 From: "marko@hundin.mysql.fi" <> Date: Mon, 3 Oct 2005 17:46:27 +0300 Subject: [PATCH] InnoDB: Display an error message in /* */ comments in SHOW CREATE TABLE if a temporary file cannot be created. (Bug #13002) --- sql/ha_innodb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 3ae56f13478..d994c76fb3f 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -4458,8 +4458,8 @@ ha_innobase::get_foreign_key_create_info(void) fclose(file); } else { /* unable to create temporary file */ - str = my_malloc(1, MYF(0)); - str[0] = 0; + str = my_strdup( +"/* Error: cannot display foreign key constraints */", MYF(0)); } return(str);