(c *gc.C)
| 26 | } |
| 27 | |
| 28 | func (s *StmtSuite) TestSelectSingleColumn(c *gc.C) { |
| 29 | sql, err := table1.Select(table1Col1).String("db") |
| 30 | |
| 31 | c.Assert(err, gc.IsNil) |
| 32 | c.Assert( |
| 33 | sql, |
| 34 | gc.Equals, |
| 35 | "SELECT `table1`.`col1` FROM `db`.`table1`") |
| 36 | } |
| 37 | |
| 38 | func (s *StmtSuite) TestSelectMultiColumns(c *gc.C) { |
| 39 | sql, err := table1.Select(table1Col1, table1Col2).String("db") |