From b6941d5ba30e1e412419dbfe79f14291298d2c64 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Wed, 20 Jun 2018 21:04:55 +0300 Subject: [PATCH] MCOL-1456 GROUP BY handler doesn`t process queries in autoswitch mode. --- dbcon/mysql/ha_calpont.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbcon/mysql/ha_calpont.cpp b/dbcon/mysql/ha_calpont.cpp index 35953fc34..79efdb88e 100644 --- a/dbcon/mysql/ha_calpont.cpp +++ b/dbcon/mysql/ha_calpont.cpp @@ -1156,7 +1156,8 @@ create_calpont_group_by_handler(THD* thd, Query* query) { ha_calpont_group_by_handler* handler = NULL; - if ( thd->infinidb_vtable.vtable_state == THD::INFINIDB_DISABLE_VTABLE ) + if ( thd->infinidb_vtable.vtable_state == THD::INFINIDB_DISABLE_VTABLE + && thd->variables.infinidb_vtable_mode == 0) { handler = new ha_calpont_group_by_handler(thd, query);