1+ // This file was modified by Oracle on June 2, 2021.
2+ // The test has been updated to remove all expectations with regards to the
3+ // "columnLength" metadata field.
4+ // Modifications copyright (c) 2021, Oracle and/or its affiliates.
5+
16'use strict' ;
27
38const common = require ( '../../common' ) ;
@@ -47,7 +52,6 @@ const expectedFields = [
4752 table : '' ,
4853 orgTable : '' ,
4954 characterSet : 63 ,
50- columnLength : 3 ,
5155 columnType : 8 ,
5256 flags : 161 ,
5357 decimals : 0
@@ -60,7 +64,6 @@ const expectedFields = [
6064 table : '' ,
6165 orgTable : '' ,
6266 characterSet : 224 ,
63- columnLength : 76 ,
6467 columnType : 253 ,
6568 flags : 1 ,
6669 decimals : 31
@@ -73,7 +76,6 @@ const expectedFields = [
7376 table : '' ,
7477 orgTable : '' ,
7578 characterSet : 224 ,
76- columnLength : 256 ,
7779 columnType : 253 ,
7880 flags : 0 ,
7981 decimals : 31
@@ -86,7 +88,6 @@ const expectedFields = [
8688 table : '' ,
8789 orgTable : '' ,
8890 characterSet : 224 ,
89- columnLength : 25264128 ,
9091 columnType : 250 ,
9192 flags : 0 ,
9293 decimals : 31
@@ -99,7 +100,6 @@ const expectedFields = [
99100 table : '' ,
100101 orgTable : '' ,
101102 characterSet : 224 ,
102- columnLength : 40 ,
103103 columnType : 253 ,
104104 flags : 0 ,
105105 decimals : 31
@@ -112,7 +112,6 @@ const expectedFields = [
112112 table : '' ,
113113 orgTable : '' ,
114114 characterSet : 224 ,
115- columnLength : 16384 ,
116115 columnType : 253 ,
117116 flags : 0 ,
118117 decimals : 31
@@ -125,7 +124,6 @@ const expectedFields = [
125124 table : '' ,
126125 orgTable : '' ,
127126 characterSet : 224 ,
128- columnLength : 256 ,
129127 columnType : 253 ,
130128 flags : 0 ,
131129 decimals : 31
@@ -138,7 +136,6 @@ const expectedFields = [
138136 table : '' ,
139137 orgTable : '' ,
140138 characterSet : 224 ,
141- columnLength : 16384 ,
142139 columnType : 253 ,
143140 flags : 0 ,
144141 decimals : 31
@@ -151,7 +148,6 @@ const expectedFields = [
151148 table : '' ,
152149 orgTable : '' ,
153150 characterSet : 224 ,
154- columnLength : 4096 ,
155151 columnType : 253 ,
156152 flags : 0 ,
157153 decimals : 31
@@ -164,7 +160,6 @@ const expectedFields = [
164160 table : '' ,
165161 orgTable : '' ,
166162 characterSet : 63 ,
167- columnLength : 10 ,
168163 columnType : 8 ,
169164 flags : 160 ,
170165 decimals : 0
@@ -177,7 +172,6 @@ const expectedFields = [
177172 table : '' ,
178173 orgTable : '' ,
179174 characterSet : 63 ,
180- columnLength : 4 ,
181175 columnType : 5 ,
182176 flags : 128 ,
183177 decimals : 2
@@ -190,7 +184,6 @@ const expectedFields = [
190184 table : '' ,
191185 orgTable : '' ,
192186 characterSet : 224 ,
193- columnLength : 1020 ,
194187 columnType : 253 ,
195188 flags : 1 ,
196189 decimals : 31
@@ -201,6 +194,9 @@ process.on('exit', () => {
201194 assert . deepEqual ( rows , expectedRows ) ;
202195 fields . forEach ( ( f , index ) => {
203196 const fi = f . inspect ( ) ;
197+ // "columnLength" is non-deterministic
198+ delete fi . columnLength ;
199+
204200 assert . deepEqual (
205201 Object . keys ( fi ) . sort ( ) ,
206202 Object . keys ( expectedFields [ index ] ) . sort ( )
0 commit comments