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

Method TestUpdateNilExpr

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

Source from the content-addressed store, hash-verified

394}
395
396func (s *StmtSuite) TestUpdateNilExpr(c *gc.C) {
397 stmt := table1.Update().Set(table1Col1, nil)
398 _, err := stmt.String("db")
399 c.Assert(err, gc.NotNil)
400}
401
402func (s *StmtSuite) TestUpdateUnconditionally(c *gc.C) {
403 stmt := table1.Update().Set(table1Col1, Literal(1))

Callers

nothing calls this directly

Calls 3

SetMethod · 0.65
UpdateMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected