@@ -477,7 +477,7 @@ public void BulkLoadLocalMemoryStream()
477477 }
478478
479479 [ Fact ]
480- public void BulkLoadDataReader ( )
480+ public void BulkCopyDataReader ( )
481481 {
482482 using var connection = new MySqlConnection ( GetLocalConnectionString ( ) ) ;
483483 using var connection2 = new MySqlConnection ( GetLocalConnectionString ( ) ) ;
@@ -522,8 +522,8 @@ public void BulkCopyNullDataTable()
522522 Assert . Throws < ArgumentNullException > ( ( ) => bulkCopy . WriteToServer ( default ( DataTable ) ) ) ;
523523 }
524524
525- [ SkippableFact ( ServerFeatures . LargePackets ) ]
526- public void BulkLoadDataTableWithLongBlob ( )
525+ [ Fact ]
526+ public void BulkCopyDataTableWithLongBlob ( )
527527 {
528528 var dataTable = new DataTable ( )
529529 {
@@ -534,8 +534,8 @@ public void BulkLoadDataTableWithLongBlob()
534534 } ,
535535 Rows =
536536 {
537- new object [ ] { 1 , new byte [ 8388500 ] } ,
538- new object [ ] { 12345678 , new byte [ 8388500 ] } ,
537+ new object [ ] { 1 , new byte [ 524200 ] } ,
538+ new object [ ] { 12345678 , new byte [ 524200 ] } ,
539539 } ,
540540 } ;
541541
@@ -555,12 +555,12 @@ public void BulkLoadDataTableWithLongBlob()
555555
556556 using ( var cmd = new MySqlCommand ( @"select sum(length(b)) from bulk_load_data_table;" , connection ) )
557557 {
558- Assert . Equal ( 16_777_000m , cmd . ExecuteScalar ( ) ) ;
558+ Assert . Equal ( 1_048_400m , cmd . ExecuteScalar ( ) ) ;
559559 }
560560 }
561561
562- [ SkippableFact ( ServerFeatures . LargePackets ) ]
563- public void BulkLoadDataTableWithLongString ( )
562+ [ Fact ]
563+ public void BulkCopyDataTableWithLongString ( )
564564 {
565565 var dataTable = new DataTable ( )
566566 {
@@ -571,8 +571,8 @@ public void BulkLoadDataTableWithLongString()
571571 } ,
572572 Rows =
573573 {
574- new object [ ] { 1 , new string ( 'a' , 16_777_000 ) } ,
575- new object [ ] { 2 , new string ( 'b' , 16_777_000 ) } ,
574+ new object [ ] { 1 , new string ( 'a' , 1_048_500 ) } ,
575+ new object [ ] { 2 , new string ( 'b' , 1_048_500 ) } ,
576576 } ,
577577 } ;
578578
@@ -592,12 +592,12 @@ public void BulkLoadDataTableWithLongString()
592592
593593 using ( var cmd = new MySqlCommand ( @"select sum(length(b)) from bulk_load_data_table;" , connection ) )
594594 {
595- Assert . Equal ( 33_554_000m , cmd . ExecuteScalar ( ) ) ;
595+ Assert . Equal ( 2_097_000m , cmd . ExecuteScalar ( ) ) ;
596596 }
597597 }
598598
599599 [ Fact ]
600- public void BulkLoadDataTableWithSpecialCharacters ( )
600+ public void BulkCopyDataTableWithSpecialCharacters ( )
601601 {
602602 var dataTable = new DataTable ( )
603603 {
@@ -640,7 +640,7 @@ public void BulkLoadDataTableWithSpecialCharacters()
640640 }
641641
642642 [ Fact ]
643- public void BulkLoadDataTableWithTooLongBlob ( )
643+ public void BulkCopyDataTableWithTooLongBlob ( )
644644 {
645645 var dataTable = new DataTable ( )
646646 {
@@ -650,7 +650,7 @@ public void BulkLoadDataTableWithTooLongBlob()
650650 } ,
651651 Rows =
652652 {
653- new object [ ] { new byte [ 8388700 ] } ,
653+ new object [ ] { new byte [ 524300 ] } ,
654654 }
655655 } ;
656656
@@ -670,7 +670,7 @@ public void BulkLoadDataTableWithTooLongBlob()
670670 }
671671
672672 [ Fact ]
673- public void BulkLoadDataTableWithTooLongString ( )
673+ public void BulkCopyDataTableWithTooLongString ( )
674674 {
675675 var dataTable = new DataTable ( )
676676 {
@@ -680,7 +680,7 @@ public void BulkLoadDataTableWithTooLongString()
680680 } ,
681681 Rows =
682682 {
683- new object [ ] { new string ( 'a' , 16_777_400 ) } ,
683+ new object [ ] { new string ( 'a' , 1_048_700 ) } ,
684684 }
685685 } ;
686686
@@ -775,7 +775,7 @@ public void BulkCopyAbort(int notifyAfter, int rowCount, int abortAfter, int exp
775775 {
776776 Columns = { new DataColumn ( "value" , typeof ( string ) ) } ,
777777 } ;
778- var str = new string ( 'a' , 1_000_000 ) ;
778+ var str = new string ( 'a' , 62500 ) ;
779779 foreach ( var x in Enumerable . Range ( 1 , rowCount ) )
780780 dataTable . Rows . Add ( new object [ ] { str } ) ;
781781
0 commit comments