From 5660e7cb3ecacbf3ac62f2c0556f129113bb4dab Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 25 Sep 2015 10:21:18 +0800 Subject: [PATCH] tidb: add test for `''''''` and `""""""` --- tidb_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tidb_test.go b/tidb_test.go index 4bbe5eb612..d8803e2ad7 100644 --- a/tidb_test.go +++ b/tidb_test.go @@ -795,6 +795,11 @@ func (s *testSessionSuite) TestSelect(c *C) { row, err = r.FirstRow() c.Assert(err, IsNil) match(c, row, 1, 2) + + r = mustExecSQL(c, se, `select '''a''', """a""", 'pingcap ''-->'' tidb'`) + row, err = r.FirstRow() + c.Assert(err, IsNil) + match(c, row, `'a'`, `"a"`, `pingcap '-->' tidb`) } func (s *testSessionSuite) TestSubQuery(c *C) {