(c *gc.C)
| 299 | } |
| 300 | |
| 301 | func (s *StmtSuite) TestInsertMultipleValues(c *gc.C) { |
| 302 | stmt := table1.Insert(table1Col1, table1Col2, table1Col3) |
| 303 | stmt.Add(Literal(1), Literal(2), Literal(3)) |
| 304 | |
| 305 | sql, err := stmt.String("db") |
| 306 | c.Assert(err, gc.IsNil) |
| 307 | |
| 308 | c.Assert( |
| 309 | sql, |
| 310 | gc.Equals, |
| 311 | "INSERT INTO `db`.`table1` "+ |
| 312 | "(`table1`.`col1`,`table1`.`col2`,`table1`.`col3`) "+ |
| 313 | "VALUES (1,2,3)") |
| 314 | } |
| 315 | |
| 316 | func (s *StmtSuite) TestInsertMultipleRows(c *gc.C) { |
| 317 | stmt := table1.Insert(table1Col1, table1Col2) |