diff --git a/src/test/java/io/mycat/route/DruidMysqlRouteStrategyTest.java b/src/test/java/io/mycat/route/DruidMysqlRouteStrategyTest.java index 09f48beaf..aee59660b 100644 --- a/src/test/java/io/mycat/route/DruidMysqlRouteStrategyTest.java +++ b/src/test/java/io/mycat/route/DruidMysqlRouteStrategyTest.java @@ -957,7 +957,7 @@ public void testAggregateExpr() throws Exception { SchemaConfig schema = schemaMap.get("TESTDB"); String sql = "select id, name, count(name) from employee group by name;"; RouteResultset rrs = routeStrategy.route(new SystemConfig(), schema, ServerParse.SELECT, sql, null, null, cachePool); - Assert.assertTrue(rrs.getMergeCols().containsKey("count2")); + Assert.assertTrue(rrs.getMergeCols().containsKey("COUNT2")); sql = "select id, name, count(name) as c from employee group by name;"; rrs = routeStrategy.route(new SystemConfig(), schema, ServerParse.SELECT, sql, null, null, cachePool);