mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into lmy004.:/work/mysql-5.1-tt-copy-works sql/sql_show.cc: Auto merged
This commit is contained in:
@ -3583,18 +3583,22 @@ static int get_schema_partitions_record(THD *thd, struct st_table_list *tables,
|
||||
TIME time;
|
||||
TABLE *show_table= tables->table;
|
||||
handler *file= show_table->file;
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
partition_info *part_info= show_table->part_info;
|
||||
#endif
|
||||
DBUG_ENTER("get_schema_partitions_record");
|
||||
|
||||
if (res)
|
||||
{
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
if (part_info)
|
||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
thd->net.last_errno, thd->net.last_error);
|
||||
#endif
|
||||
thd->clear_error();
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
if (part_info)
|
||||
{
|
||||
partition_element *part_elem;
|
||||
@ -3751,6 +3755,7 @@ static int get_schema_partitions_record(THD *thd, struct st_table_list *tables,
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
store_schema_partitions_record(thd, table, 0, file, 0);
|
||||
if(schema_table_store_record(thd, table))
|
||||
|
Reference in New Issue
Block a user