Skip to content

Commit 0698778

Browse files
author
小黑
committed
fix: fix client field list
1 parent e65c30b commit 0698778

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/conn_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ func (s *connTestSuite) testExecute_DropTable(c *C) {
8282
c.Assert(err, IsNil)
8383
}
8484

85+
func (s *clientTestSuite) TestFieldList(c *C) {
86+
fields, err := s.c.FieldList(testExecuteSelectStreamingTablename, "")
87+
c.Assert(err, IsNil)
88+
c.Assert(fields, HasLen, 2)
89+
}
90+
8591
func (s *connTestSuite) TestExecuteMultiple(c *C) {
8692
queries := []string{
8793
`INSERT INTO ` + testExecuteSelectStreamingTablename + ` (id, str) VALUES (999, "executemultiple")`,

0 commit comments

Comments
 (0)