(c *gc.C)
| 110 | } |
| 111 | |
| 112 | func (s *TableSuite) TestLeftJoin(c *gc.C) { |
| 113 | join := table1.LeftJoinOn(table2, Eq(table1Col3, table2Col3)) |
| 114 | |
| 115 | buf := &bytes.Buffer{} |
| 116 | |
| 117 | err := join.SerializeSql("db", buf) |
| 118 | c.Assert(err, gc.IsNil) |
| 119 | |
| 120 | sql := buf.String() |
| 121 | c.Assert( |
| 122 | sql, |
| 123 | gc.Equals, |
| 124 | "`db`.`table1` LEFT JOIN `db`.`table2` "+ |
| 125 | "ON `table1`.`col3`=`table2`.`col3`") |
| 126 | } |
| 127 | |
| 128 | func (s *TableSuite) TestRightJoin(c *gc.C) { |
| 129 | join := table1.RightJoinOn(table2, Eq(table1Col3, table2Col3)) |
nothing calls this directly
no test coverage detected