mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
Bug #14673: Wrong InnoDB default row format
Make partitioned tables report the row format of the underlying tables (when they are all the same). mysql-test/r/partition.result: Add new results mysql-test/t/partition.test: Add regression test sql/ha_partition.cc: Add get_row_type(), which peeks at the underlying tables and returns the row_type if they are consistent. sql/ha_partition.h: Add get_row_type() method
This commit is contained in:
parent
56df722382
commit
e99b11d369
4 changed files with 31 additions and 0 deletions
|
|
@ -5115,6 +5115,22 @@ const char *ha_partition::index_type(uint inx)
|
|||
}
|
||||
|
||||
|
||||
enum row_type ha_partition::get_row_type() const
|
||||
{
|
||||
handler **file;
|
||||
enum row_type type= (*m_file)->get_row_type();
|
||||
|
||||
for (file= m_file, file++; *file; file++)
|
||||
{
|
||||
enum row_type part_type= (*file)->get_row_type();
|
||||
if (part_type != type)
|
||||
return ROW_TYPE_NOT_USED;
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
void ha_partition::print_error(int error, myf errflag)
|
||||
{
|
||||
DBUG_ENTER("ha_partition::print_error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue