summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2001-05-10 15:06:35 -0600
committersasha@mysql.sashanet.com <>2001-05-10 15:06:35 -0600
commit7c9b9f471c86c53f8a55ec4a249499cf2fb6bab3 (patch)
tree32fd0eb2c34334b7806726cf2dc9f8a893ea6fc8 /sql/sql_show.cc
parent8e882bcafa9daf15f77718f29ab8cdc344e4ee27 (diff)
parent4e04aa4abd0e540e6ce5cd48f2057ae993ee3336 (diff)
downloadmariadb-git-7c9b9f471c86c53f8a55ec4a249499cf2fb6bab3.tar.gz
Merged with 3.23, needs further fix-up
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index faa899b719f..ac89b7a2782 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -786,7 +786,10 @@ store_create_info(THD *thd, TABLE *table, String *packet)
List<Item> field_list;
char tmp[MAX_FIELD_WIDTH];
String type(tmp, sizeof(tmp));
- packet->append("CREATE TABLE ", 13);
+ if (table->tmp_table)
+ packet->append("CREATE TEMPORARY TABLE ", 23);
+ else
+ packet->append("CREATE TABLE ", 13);
append_identifier(thd,packet,table->real_name);
packet->append(" (\n", 3);