1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

sql_table.cc:

Fix CREATE LIKE TABLE .. temporary case
This commit is contained in:
venu@myvenu.com
2002-12-28 01:38:29 -08:00
parent d85a01db2c
commit 2e0b01b315
6 changed files with 235 additions and 5 deletions

View File

@@ -1830,10 +1830,14 @@ mysql_execute_command(THD *thd)
}
else // regular create
{
res = mysql_create_table(thd,tables->db ? tables->db : thd->db,
tables->real_name, &lex->create_info,
lex->create_list,
lex->key_list,0,0,0); // do logging
if (lex->name)
res= mysql_create_like_table(thd, tables, &lex->create_info,
(Table_ident *)lex->name);
else
res= mysql_create_table(thd,tables->db ? tables->db : thd->db,
tables->real_name, &lex->create_info,
lex->create_list,
lex->key_list,0,0,0); // do logging
if (!res)
send_ok(thd);
}