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

Method TestUpdateNilColumn

database/sqlbuilder/statement_test.go:390–394  ·  view source on GitHub ↗

UPDATE statement tests =====================================================

(c *gc.C)

Source from the content-addressed store, hash-verified

388//
389
390func (s *StmtSuite) TestUpdateNilColumn(c *gc.C) {
391 stmt := table1.Update().Set(nil, Literal(1))
392 _, err := stmt.String("db")
393 c.Assert(err, gc.NotNil)
394}
395
396func (s *StmtSuite) TestUpdateNilExpr(c *gc.C) {
397 stmt := table1.Update().Set(table1Col1, nil)

Callers

nothing calls this directly

Calls 4

LiteralFunction · 0.85
SetMethod · 0.65
UpdateMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected