(c *gc.C)
| 265 | } |
| 266 | |
| 267 | func (s *StmtSuite) TestInsertSingleValue(c *gc.C) { |
| 268 | sql, err := table1.Insert(table1Col1).Add(Literal(1)).String("db") |
| 269 | c.Assert(err, gc.IsNil) |
| 270 | |
| 271 | c.Assert( |
| 272 | sql, |
| 273 | gc.Equals, |
| 274 | "INSERT INTO `db`.`table1` (`table1`.`col1`) VALUES (1)") |
| 275 | } |
| 276 | |
| 277 | func (s *StmtSuite) TestInsertDate(c *gc.C) { |
| 278 | date := time.Date(1999, 1, 2, 3, 4, 5, 0, time.UTC) |