mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #17340 SHOW CREATE TABLE from second session crashes the server
- no check was made that ndb thd object was allocated
This commit is contained in:
@@ -1138,7 +1138,7 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
|
||||
to the CREATE TABLE statement
|
||||
*/
|
||||
|
||||
if ((for_str= file->get_tablespace_name()))
|
||||
if ((for_str= file->get_tablespace_name(thd)))
|
||||
{
|
||||
packet->append(" TABLESPACE ");
|
||||
packet->append(for_str, strlen(for_str));
|
||||
|
||||
Reference in New Issue
Block a user