Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu committed Jul 31, 2018
1 parent b91246b commit 92d2401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion executor/aggregate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ func (s *testSuite) TestAggregation(c *C) {

// test agg bit col
tk.MustExec("drop table t")
tk.MustExec("create table t(a bit(1))")
tk.MustExec("CREATE TABLE `t` (`a` bit(1) NOT NULL, PRIMARY KEY (`a`))")
tk.MustExec("insert into t value(1), (0)")
tk.MustQuery("select a from t group by 1")
tk.MustQuery("select max(a) from t group by a")
result = tk.MustQuery("select cast(a as signed) as idx, cast(max(a) as signed), cast(min(a) as signed) from t group by 1 order by idx")
result.Check(testkit.Rows("0 0 0", "1 1 1"))
}
Expand Down

0 comments on commit 92d2401

Please sign in to comment.