@@ -183,6 +183,7 @@ public function dumpData($table, Table $tableConfig, Connection $db, bool $noPro
183183/** @var PDOConnection $wrappedConnection */
184184$ wrappedConnection =$ db ->getWrappedConnection ();
185185$ wrappedConnection ->setAttribute (PDO ::MYSQL_ATTR_USE_BUFFERED_QUERY ,false );
186+ $ actualRows =0 ;
186187
187188foreach ($ db ->query ($ s )as $ row ) {
188189$ b =$ this ->rowLengthEstimate ($ row );
@@ -222,6 +223,8 @@ public function dumpData($table, Table $tableConfig, Connection $db, bool $noPro
222223if (null !==$ progress ) {
223224$ progress ->advance ();
224225 }
226+
227+ ++$ actualRows ;
225228 }
226229
227230if (null !==$ progress ) {
@@ -232,6 +235,10 @@ public function dumpData($table, Table $tableConfig, Connection $db, bool $noPro
232235 }
233236 }
234237
238+ if ($ actualRows !==$ numRows ) {
239+ $ this ->output ->getErrorOutput ()->writeln (sprintf ('<error>Expected %d rows, actually processed %d – verify results!</error> ' ,$ numRows ,$ actualRows ));
240+ }
241+
235242$ wrappedConnection ->setAttribute (PDO ::MYSQL_ATTR_USE_BUFFERED_QUERY ,true );
236243
237244if ($ bufferSize ) {