@@ -726,53 +726,7 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
726
726
] , done ) ;
727
727
} ) ; // 77.1.18
728
728
729
- it ( '77.1.19 works with Buffer size (5MB + 1)' , function ( done ) {
730
- var size = 5242881 ; // 5 * 1024 * 1024 + 1;
731
- var sequence = insertID ++ ;
732
- var specialStr = "77.1.19" ;
733
- var bigStr = random . getRandomString ( size , specialStr ) ;
734
- var bufferStr = node6plus ? Buffer . from ( bigStr , "utf-8" ) : new Buffer ( bigStr , "utf-8" ) ;
735
- var bindVar = {
736
- i : { val : sequence , type : oracledb . NUMBER , dir : oracledb . BIND_IN } ,
737
- b : { val : bufferStr , type : oracledb . BUFFER , dir : oracledb . BIND_IN , maxSize : size }
738
- } ;
739
- var option = { autoCommit : true } ;
740
-
741
- async . series ( [
742
- function ( cb ) {
743
- plsqlBindIn ( sqlRun , bindVar , option , true , client11gPlus , cb ) ;
744
- } ,
745
- function ( cb ) {
746
- var sql = "select blob_1 from nodb_tab_blob_in where id = " + sequence ;
747
- compareBindInResult ( sql , bufferStr , specialStr , true , client11gPlus , cb ) ;
748
- }
749
- ] , done ) ;
750
- } ) ; // 77.1.19
751
-
752
- it ( '77.1.20 works with Buffer size (10MB + 1)' , function ( done ) {
753
- var size = 10485761 ; // 10 * 1024 * 1024 + 1;
754
- var sequence = insertID ++ ;
755
- var specialStr = "77.1.20" ;
756
- var bigStr = random . getRandomString ( size , specialStr ) ;
757
- var bufferStr = node6plus ? Buffer . from ( bigStr , "utf-8" ) : new Buffer ( bigStr , "utf-8" ) ;
758
- var bindVar = {
759
- i : { val : sequence , type : oracledb . NUMBER , dir : oracledb . BIND_IN } ,
760
- b : { val : bufferStr , type : oracledb . BUFFER , dir : oracledb . BIND_IN , maxSize : size }
761
- } ;
762
- var option = { autoCommit : true } ;
763
-
764
- async . series ( [
765
- function ( cb ) {
766
- plsqlBindIn ( sqlRun , bindVar , option , true , client11gPlus , cb ) ;
767
- } ,
768
- function ( cb ) {
769
- var sql = "select blob_1 from nodb_tab_blob_in where id = " + sequence ;
770
- compareBindInResult ( sql , bufferStr , specialStr , true , client11gPlus , cb ) ;
771
- }
772
- ] , done ) ;
773
- } ) ; // 77.1.20
774
-
775
- it ( '77.1.21 works with bind value and type mismatch' , function ( done ) {
729
+ it ( '77.1.19 works with bind value and type mismatch' , function ( done ) {
776
730
var sequence = insertID ++ ;
777
731
var bindVar = {
778
732
i : { val : sequence , type : oracledb . NUMBER , dir : oracledb . BIND_IN } ,
@@ -790,12 +744,12 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
790
744
done ( ) ;
791
745
}
792
746
) ;
793
- } ) ; // 77.1.21
747
+ } ) ; // 77.1.19
794
748
795
- it ( '77.1.22 mixing named with positional binding' , function ( done ) {
749
+ it ( '77.1.20 mixing named with positional binding' , function ( done ) {
796
750
var size = 50000 ;
797
751
var sequence = insertID ++ ;
798
- var specialStr = "77.1.22 " ;
752
+ var specialStr = "77.1.20 " ;
799
753
var bigStr = random . getRandomString ( size , specialStr ) ;
800
754
var bufferStr = node6plus ? Buffer . from ( bigStr , "utf-8" ) : new Buffer ( bigStr , "utf-8" ) ;
801
755
var bindVar = [ sequence , { val : bufferStr , type : oracledb . BUFFER , dir : oracledb . BIND_IN , maxSize : size } ] ;
@@ -811,9 +765,9 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
811
765
compareBindInResult ( sql , bufferStr , specialStr , false , client11gPlus , cb ) ;
812
766
}
813
767
] , done ) ;
814
- } ) ; // 77.1.22
768
+ } ) ; // 77.1.20
815
769
816
- it ( '77.1.23 works with invalid BLOB' , function ( done ) {
770
+ it ( '77.1.21 works with invalid BLOB' , function ( done ) {
817
771
var sequence = insertID ++ ;
818
772
var bindVar = {
819
773
i : { val : sequence , type : oracledb . NUMBER , dir : oracledb . BIND_IN } ,
@@ -831,12 +785,12 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
831
785
done ( ) ;
832
786
}
833
787
) ;
834
- } ) ; // 77.1.23
788
+ } ) ; // 77.1.21
835
789
836
- it ( '77.1.24 works without maxSize' , function ( done ) {
790
+ it ( '77.1.22 works without maxSize' , function ( done ) {
837
791
var size = 65535 ;
838
792
var sequence = insertID ++ ;
839
- var specialStr = "77.1.24 " ;
793
+ var specialStr = "77.1.22 " ;
840
794
var bigStr = random . getRandomString ( size , specialStr ) ;
841
795
var bufferStr = node6plus ? Buffer . from ( bigStr , "utf-8" ) : new Buffer ( bigStr , "utf-8" ) ;
842
796
var bindVar = {
@@ -854,12 +808,12 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
854
808
compareBindInResult ( sql , bufferStr , specialStr , false , client11gPlus , cb ) ;
855
809
}
856
810
] , done ) ;
857
- } ) ; // 77.1.24
811
+ } ) ; // 77.1.22
858
812
859
- it ( '77.1.25 works with bind in maxSize smaller than buffer size' , function ( done ) {
813
+ it ( '77.1.23 works with bind in maxSize smaller than buffer size' , function ( done ) {
860
814
var size = 65535 ;
861
815
var sequence = insertID ++ ;
862
- var specialStr = "77.1.25 " ;
816
+ var specialStr = "77.1.23 " ;
863
817
var bigStr = random . getRandomString ( size , specialStr ) ;
864
818
var bufferStr = node6plus ? Buffer . from ( bigStr , "utf-8" ) : new Buffer ( bigStr , "utf-8" ) ;
865
819
var bindVar = {
@@ -877,9 +831,9 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
877
831
compareBindInResult ( sql , bufferStr , specialStr , false , client11gPlus , cb ) ;
878
832
}
879
833
] , done ) ;
880
- } ) ; // 77.1.25
834
+ } ) ; // 77.1.23
881
835
882
- it ( '77.1.26 works with UPDATE' , function ( done ) {
836
+ it ( '77.1.24 works with UPDATE' , function ( done ) {
883
837
var proc_7726 = "CREATE OR REPLACE PROCEDURE nodb_blobs_in_7726 (blob_id IN NUMBER, blob_in IN BLOB, blob_update IN BLOB)\n" +
884
838
"AS \n" +
885
839
"BEGIN \n" +
@@ -890,11 +844,11 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
890
844
var proc_drop_7726 = "DROP PROCEDURE nodb_blobs_in_7726" ;
891
845
var sequence = insertID ++ ;
892
846
var size_1 = 65535 ;
893
- var specialStr_1 = "77.1.26_1 " ;
847
+ var specialStr_1 = "77.1.24_1 " ;
894
848
var bigStr_1 = random . getRandomString ( size_1 , specialStr_1 ) ;
895
849
var bufferStr_1 = node6plus ? Buffer . from ( bigStr_1 , "utf-8" ) : new Buffer ( bigStr_1 , "utf-8" ) ;
896
850
var size_2 = 30000 ;
897
- var specialStr_2 = "77.1.26_2 " ;
851
+ var specialStr_2 = "77.1.24_2 " ;
898
852
var bigStr_2 = random . getRandomString ( size_2 , specialStr_2 ) ;
899
853
var bufferStr_2 = node6plus ? Buffer . from ( bigStr_2 , "utf-8" ) : new Buffer ( bigStr_2 , "utf-8" ) ;
900
854
var bindVar = {
@@ -926,7 +880,7 @@ describe('77. blobPlsqlBindAsBuffer_bindin.js', function() {
926
880
executeSQL ( proc_drop_7726 , cb ) ;
927
881
}
928
882
] , done ) ;
929
- } ) ; // 77.1.26
883
+ } ) ; // 77.1.24
930
884
931
885
} ) ; // 77.1
932
886
0 commit comments