question: public int [ ] updateResultsMultiple ( int waitedSize , boolean hasException ) { if ( hasException ) { for ( int i = affectedRows . size ( ) ; i < waitedSize ; i ++ ) { addStatsError ( ) ; } } return getAffectedRows ( ) ; }
target:  Set update resultSet right on multiple rewrite. INSERT XXXX INSERT XXXX is rewritten INSERT XXXX;INSERT XXXX So affected rows and insert Id are separate in as many okPacket.