(t *testing.T)
| 354 | } |
| 355 | |
| 356 | func TestRollupExpression_SQL(t *testing.T) { |
| 357 | r := &RollupExpression{Expressions: []Expression{&Identifier{Name: "a"}, &Identifier{Name: "b"}}} |
| 358 | if r.SQL() != "ROLLUP(a, b)" { |
| 359 | t.Errorf("got: %s", r.SQL()) |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | func TestCubeExpression_SQL(t *testing.T) { |
| 364 | c := &CubeExpression{Expressions: []Expression{&Identifier{Name: "a"}}} |