1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +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:
Sergei Golubchik
2013-07-21 16:39:19 +02:00
1378 changed files with 122105 additions and 45095 deletions

View File

@@ -26,109 +26,100 @@ int reassign_keycache_tables(THD* thd, KEY_CACHE *src_cache,
KEY_CACHE *dst_cache);
/**
Analyze_statement represents the ANALYZE TABLE statement.
Sql_cmd_analyze_table represents the ANALYZE TABLE statement.
*/
class Analyze_table_statement : public Sql_statement
class Sql_cmd_analyze_table : public Sql_cmd
{
public:
/**
Constructor, used to represent a ANALYZE TABLE statement.
@param lex the LEX structure for this statement.
*/
Analyze_table_statement(LEX *lex)
: Sql_statement(lex)
Sql_cmd_analyze_table()
{}
~Analyze_table_statement()
~Sql_cmd_analyze_table()
{}
/**
Execute a ANALYZE TABLE statement at runtime.
@param thd the current thread.
@return false on success.
*/
bool execute(THD *thd);
virtual enum_sql_command sql_command_code() const
{
return SQLCOM_ANALYZE;
}
};
/**
Check_table_statement represents the CHECK TABLE statement.
Sql_cmd_check_table represents the CHECK TABLE statement.
*/
class Check_table_statement : public Sql_statement
class Sql_cmd_check_table : public Sql_cmd
{
public:
/**
Constructor, used to represent a CHECK TABLE statement.
@param lex the LEX structure for this statement.
*/
Check_table_statement(LEX *lex)
: Sql_statement(lex)
Sql_cmd_check_table()
{}
~Check_table_statement()
~Sql_cmd_check_table()
{}
/**
Execute a CHECK TABLE statement at runtime.
@param thd the current thread.
@return false on success.
*/
bool execute(THD *thd);
virtual enum_sql_command sql_command_code() const
{
return SQLCOM_CHECK;
}
};
/**
Optimize_table_statement represents the OPTIMIZE TABLE statement.
Sql_cmd_optimize_table represents the OPTIMIZE TABLE statement.
*/
class Optimize_table_statement : public Sql_statement
class Sql_cmd_optimize_table : public Sql_cmd
{
public:
/**
Constructor, used to represent a OPTIMIZE TABLE statement.
@param lex the LEX structure for this statement.
*/
Optimize_table_statement(LEX *lex)
: Sql_statement(lex)
Sql_cmd_optimize_table()
{}
~Optimize_table_statement()
~Sql_cmd_optimize_table()
{}
/**
Execute a OPTIMIZE TABLE statement at runtime.
@param thd the current thread.
@return false on success.
*/
bool execute(THD *thd);
virtual enum_sql_command sql_command_code() const
{
return SQLCOM_OPTIMIZE;
}
};
/**
Repair_table_statement represents the REPAIR TABLE statement.
Sql_cmd_repair_table represents the REPAIR TABLE statement.
*/
class Repair_table_statement : public Sql_statement
class Sql_cmd_repair_table : public Sql_cmd
{
public:
/**
Constructor, used to represent a REPAIR TABLE statement.
@param lex the LEX structure for this statement.
*/
Repair_table_statement(LEX *lex)
: Sql_statement(lex)
Sql_cmd_repair_table()
{}
~Repair_table_statement()
~Sql_cmd_repair_table()
{}
/**
Execute a REPAIR TABLE statement at runtime.
@param thd the current thread.
@return false on success.
*/
bool execute(THD *thd);
virtual enum_sql_command sql_command_code() const
{
return SQLCOM_REPAIR;
}
};
#endif