(c *gc.C)
| 95 | } |
| 96 | |
| 97 | func (s *TableSuite) TestInnerJoin(c *gc.C) { |
| 98 | join := table1.InnerJoinOn(table2, Eq(table1Col3, table2Col3)) |
| 99 | |
| 100 | buf := &bytes.Buffer{} |
| 101 | |
| 102 | err := join.SerializeSql("db", buf) |
| 103 | c.Assert(err, gc.IsNil) |
| 104 | |
| 105 | sql := buf.String() |
| 106 | c.Assert( |
| 107 | sql, |
| 108 | gc.Equals, |
| 109 | "`db`.`table1` JOIN `db`.`table2` ON `table1`.`col3`=`table2`.`col3`") |
| 110 | } |
| 111 | |
| 112 | func (s *TableSuite) TestLeftJoin(c *gc.C) { |
| 113 | join := table1.LeftJoinOn(table2, Eq(table1Col3, table2Col3)) |
nothing calls this directly
no test coverage detected