(c *gc.C)
| 510 | } |
| 511 | |
| 512 | func (s *StmtSuite) TestDeleteWithLimit(c *gc.C) { |
| 513 | stmt := table1.Delete().Where(EqL(table1Col1, 1)).Limit(5) |
| 514 | sql, err := stmt.String("db") |
| 515 | c.Assert(err, gc.IsNil) |
| 516 | |
| 517 | c.Assert( |
| 518 | sql, |
| 519 | gc.Equals, |
| 520 | "DELETE FROM `db`.`table1` WHERE `table1`.`col1`=1 LIMIT 5") |
| 521 | } |
| 522 | |
| 523 | // |
| 524 | // LOCK/UNLOCK statement tests ================================================ |