tidb: add test for '''''' and """"""

This commit is contained in:
siddontang
2015-09-25 10:21:18 +08:00
parent 29ba211e73
commit 5660e7cb3e

View File

@ -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) {