(t *testing.T)
| 189 | } |
| 190 | |
| 191 | func TestSelectWithOptions(t *testing.T) { |
| 192 | sql, _, err := Select("*").From("foo").Distinct().Options("SQL_NO_CACHE").ToSql() |
| 193 | |
| 194 | assert.NoError(t, err) |
| 195 | assert.Equal(t, "SELECT DISTINCT SQL_NO_CACHE * FROM foo", sql) |
| 196 | } |
| 197 | |
| 198 | func TestSelectWithRemoveLimit(t *testing.T) { |
| 199 | sql, _, err := Select("*").From("foo").Limit(10).RemoveLimit().ToSql() |