From d0f51f65262f0c956c5ac094ca8217901f893d28 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Tue, 17 Dec 2019 15:32:32 +0200 Subject: [PATCH] MCOL-3673 Fix legacy db type We were auto-assigned a DB type which could cause issues during major upgrades. Setting to autoassign gives us a DB type of 0 which solves these issues. --- dbcon/mysql/ha_mcs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbcon/mysql/ha_mcs.cpp b/dbcon/mysql/ha_mcs.cpp index d8fd5d8e1..04b42d3d3 100644 --- a/dbcon/mysql/ha_mcs.cpp +++ b/dbcon/mysql/ha_mcs.cpp @@ -155,6 +155,7 @@ static int columnstore_init_func(void* p) mcs_hton->create_group_by = create_columnstore_group_by_handler; mcs_hton->create_derived = create_columnstore_derived_handler; mcs_hton->create_select = create_columnstore_select_handler; + mcs_hton->db_type = DB_TYPE_AUTOASSIGN; DBUG_RETURN(0); }