mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
10.0-monty merge
includes: * remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING" * introduce LOCK_share, now LOCK_ha_data is strictly for engines * rea_create_table() always creates .par file (even in "frm-only" mode) * fix a 5.6 bug, temp file leak on dummy ALTER TABLE
This commit is contained in:
@ -258,6 +258,17 @@ public:
|
||||
class Columns_statistics;
|
||||
class Index_statistics;
|
||||
|
||||
static inline
|
||||
int rename_table_in_stat_tables(THD *thd, const char *db, const char *tab,
|
||||
const char *new_db, const char *new_tab)
|
||||
{
|
||||
LEX_STRING od= { const_cast<char*>(db), strlen(db) };
|
||||
LEX_STRING ot= { const_cast<char*>(tab), strlen(tab) };
|
||||
LEX_STRING nd= { const_cast<char*>(new_db), strlen(new_db) };
|
||||
LEX_STRING nt= { const_cast<char*>(new_tab), strlen(new_tab) };
|
||||
return rename_table_in_stat_tables(thd, &od, &ot, &nd, &nt);
|
||||
}
|
||||
|
||||
|
||||
/* Statistical data on a table */
|
||||
|
||||
|
Reference in New Issue
Block a user