@@ -113,20 +113,20 @@ func (s *connTestSuite) TestExecuteMultiple() {
113113 count := 0
114114 result , err := s .c .ExecuteMultiple (strings .Join (queries , "; " ), func (result * mysql.Result , err error ) {
115115 switch count {
116- // the INSERT/DELETE query have no resultset, but should have set affectedrows
117- // the err should be nil
118- // also, since this is not the last query, the SERVER_MORE_RESULTS_EXISTS
119- // flag should be set
120116 case 0 , 2 :
117+ // the INSERT/DELETE query have empty resultset, but should have set affectedrows
118+ // the err should be nil
119+ // also, since this is not the last query, the SERVER_MORE_RESULTS_EXISTS
120+ // flag should be set
121121 require .True (s .T (), result .Status & mysql .SERVER_MORE_RESULTS_EXISTS > 0 )
122- require .Nil (s .T (), result .Resultset )
122+ require .Equal (s .T (), 0 , result .Resultset . RowNumber () )
123123 require .Equal (s .T (), uint64 (1 ), result .AffectedRows )
124124 require .NoError (s .T (), err )
125125 case 1 :
126126 // the SELECT query should have an resultset
127127 // still not the last query, flag should be set
128128 require .True (s .T (), result .Status & mysql .SERVER_MORE_RESULTS_EXISTS > 0 )
129- require .NotNil (s .T (), result .Resultset )
129+ require .Greater (s .T (), result .Resultset . RowNumber (), 0 )
130130 require .NoError (s .T (), err )
131131 case 3 :
132132 // this query is obviously bogus so the error should be non-nil
0 commit comments