MDEV-4466 Partitioned Aria table created by a previous version is recognized as TEST_SQL_DISCOVERY

Partitioning didn't store the name of default storage engine for partitions
in the frm file - it only store the typecode. Typecodes aren't stable, and
might vary depending on the order in which storage engines are loaded (can
be changed even from my.cnf without recompilation).

As a temporary workaround for 5.5, we hard-code Aria's typecode, to make sure it
never changes.
This commit is contained in:
Sergei Golubchik 2013-06-15 16:02:43 +02:00
commit 10be9160c1
3 changed files with 8 additions and 2 deletions

View file

@ -3471,7 +3471,7 @@ static int ha_maria_init(void *p)
maria_hton= (handlerton *)p;
maria_hton->state= SHOW_OPTION_YES;
maria_hton->db_type= DB_TYPE_UNKNOWN;
maria_hton->db_type= DB_TYPE_ARIA;
maria_hton->create= maria_create_handler;
maria_hton->panic= maria_hton_panic;
maria_hton->commit= maria_commit;