(t *testing.T)
| 777 | } |
| 778 | |
| 779 | func TestOrderByNullsLast(t *testing.T) { |
| 780 | stmt := &SelectStatement{ |
| 781 | Columns: []Expression{&Identifier{Name: "x"}}, |
| 782 | From: []TableReference{{Name: "t"}}, |
| 783 | OrderBy: []OrderByExpression{{Expression: &Identifier{Name: "a"}, Ascending: true, NullsFirst: covBoolPtr(false)}}, |
| 784 | } |
| 785 | sql := stmt.SQL() |
| 786 | if !strings.Contains(sql, "NULLS LAST") { |
| 787 | t.Errorf("got: %s", sql) |
| 788 | } |
| 789 | } |
nothing calls this directly
no test coverage detected