(c *gc.C)
| 207 | } |
| 208 | |
| 209 | func (s *StmtSuite) TestSelectWithSharedLock(c *gc.C) { |
| 210 | |
| 211 | q := table1.Select(table1Col1).Where(GtL(table1Col1, 123)).WithSharedLock() |
| 212 | sql, err := q.String("db") |
| 213 | |
| 214 | c.Assert(err, gc.IsNil) |
| 215 | c.Assert( |
| 216 | sql, |
| 217 | gc.Equals, |
| 218 | "SELECT `table1`.`col1` FROM `db`.`table1` "+ |
| 219 | "WHERE `table1`.`col1`>123 LOCK IN SHARE MODE") |
| 220 | } |
| 221 | |
| 222 | func (s *StmtSuite) TestSelectDistinct(c *gc.C) { |
| 223 | q := table1.Select(table1Col1).Distinct() |
nothing calls this directly
no test coverage detected