From 0f37ca8b76866f070f526125ee31a143caef6c15 Mon Sep 17 00:00:00 2001 From: yeshwanthsripathy Date: Tue, 3 Oct 2023 17:51:30 -0500 Subject: [PATCH] Fixed testAggregateExpr test --- src/test/java/io/mycat/route/DruidMysqlRouteStrategyTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);