Applied all changes from Igor and Sanja

This commit is contained in:
Michael Widenius 2013-06-15 18:32:08 +03:00
parent 3143ad589a
commit 5f1f2fc0e4
162 changed files with 11704 additions and 6298 deletions

View file

@ -24,109 +24,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