@@ -113,20 +113,20 @@ func (s *connTestSuite) TestExecuteMultiple() {
113
113
count := 0
114
114
result , err := s .c .ExecuteMultiple (strings .Join (queries , "; " ), func (result * mysql.Result , err error ) {
115
115
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
120
116
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
121
121
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 () )
123
123
require .Equal (s .T (), uint64 (1 ), result .AffectedRows )
124
124
require .NoError (s .T (), err )
125
125
case 1 :
126
126
// the SELECT query should have an resultset
127
127
// still not the last query, flag should be set
128
128
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 )
130
130
require .NoError (s .T (), err )
131
131
case 3 :
132
132
// this query is obviously bogus so the error should be non-nil
0 commit comments