(t *testing.T)
| 368 | } |
| 369 | |
| 370 | func TestGroupingSetsExpression_SQL(t *testing.T) { |
| 371 | g := &GroupingSetsExpression{Sets: [][]Expression{ |
| 372 | {&Identifier{Name: "a"}}, |
| 373 | {&Identifier{Name: "b"}, &Identifier{Name: "c"}}, |
| 374 | }} |
| 375 | sql := g.SQL() |
| 376 | if !strings.Contains(sql, "GROUPING SETS") { |
| 377 | t.Errorf("got: %s", sql) |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | func TestWindowFrameSQL(t *testing.T) { |
| 382 | // Test through SelectStatement with window spec that has frame |