MCPcopy
hub / github.com/dropbox/godropbox / TestDeleteWithLimit

Method TestDeleteWithLimit

database/sqlbuilder/statement_test.go:512–521  ·  view source on GitHub ↗
(c *gc.C)

Source from the content-addressed store, hash-verified

510}
511
512func (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 ================================================

Callers

nothing calls this directly

Calls 5

EqLFunction · 0.85
LimitMethod · 0.65
WhereMethod · 0.65
DeleteMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected