tidb: add String() test after committed.

This commit is contained in:
siddontang
2015-09-08 10:47:36 +08:00
parent 6042380cd0
commit 0d53849aa5

View File

@ -348,6 +348,14 @@ func (s *testSessionSuite) TestAffectedRows(c *C) {
}
func (s *testSessionSuite) TestString(c *C) {
store := newStore(c, s.dbName)
se := newSession(c, store, s.dbName)
sessionExec(c, se, "select 1")
// here to check the panic bug in String() when txn is nil after committed.
c.Log(se.String())
}
func (s *testSessionSuite) TestResultField(c *C) {
store := newStore(c, s.dbName)
se := newSession(c, store, s.dbName)