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

Method TestInsertNilColumn

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

Source from the content-addressed store, hash-verified

259}
260
261func (s *StmtSuite) TestInsertNilColumn(c *gc.C) {
262 _, err := table1.Insert(nil).Add(Literal(1)).String("db")
263
264 c.Assert(err, gc.NotNil)
265}
266
267func (s *StmtSuite) TestInsertSingleValue(c *gc.C) {
268 sql, err := table1.Insert(table1Col1).Add(Literal(1)).String("db")

Callers

nothing calls this directly

Calls 4

LiteralFunction · 0.85
StringMethod · 0.65
AddMethod · 0.65
InsertMethod · 0.65

Tested by

no test coverage detected