(c *gc.C)
| 43 | } |
| 44 | |
| 45 | func (s *ExprSuite) TestTupleExpr(c *gc.C) { |
| 46 | |
| 47 | expr := Tuple() |
| 48 | buf := &bytes.Buffer{} |
| 49 | err := expr.SerializeSql(buf) |
| 50 | c.Assert(err, gc.NotNil) |
| 51 | |
| 52 | expr = Tuple(table1Col1, Literal(1), Literal("five")) |
| 53 | err = expr.SerializeSql(buf) |
| 54 | c.Assert(err, gc.IsNil) |
| 55 | |
| 56 | sql := buf.String() |
| 57 | c.Assert( |
| 58 | sql, |
| 59 | gc.Equals, |
| 60 | "(`table1`.`col1`,1,'five')") |
| 61 | |
| 62 | } |
| 63 | |
| 64 | func (s *ExprSuite) TestLikeExpr(c *gc.C) { |
| 65 | expr := LikeL(table1Col1, EscapeForLike("%my_prefix")+"%") |
nothing calls this directly
no test coverage detected