(t *testing.T)
| 145 | } |
| 146 | |
| 147 | func TestSelectBuilderSimpleJoin(t *testing.T) { |
| 148 | |
| 149 | expectedSql := "SELECT * FROM bar JOIN baz ON bar.foo = baz.foo" |
| 150 | expectedArgs := []interface{}(nil) |
| 151 | |
| 152 | b := Select("*").From("bar").Join("baz ON bar.foo = baz.foo") |
| 153 | |
| 154 | sql, args, err := b.ToSql() |
| 155 | assert.NoError(t, err) |
| 156 | |
| 157 | assert.Equal(t, expectedSql, sql) |
| 158 | assert.Equal(t, args, expectedArgs) |
| 159 | } |
| 160 | |
| 161 | func TestSelectBuilderParamJoin(t *testing.T) { |
| 162 |