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
+
1
6
'use strict' ;
2
7
3
8
const common = require ( '../../common' ) ;
@@ -47,7 +52,6 @@ const expectedFields = [
47
52
table : '' ,
48
53
orgTable : '' ,
49
54
characterSet : 63 ,
50
- columnLength : 3 ,
51
55
columnType : 8 ,
52
56
flags : 161 ,
53
57
decimals : 0
@@ -60,7 +64,6 @@ const expectedFields = [
60
64
table : '' ,
61
65
orgTable : '' ,
62
66
characterSet : 224 ,
63
- columnLength : 76 ,
64
67
columnType : 253 ,
65
68
flags : 1 ,
66
69
decimals : 31
@@ -73,7 +76,6 @@ const expectedFields = [
73
76
table : '' ,
74
77
orgTable : '' ,
75
78
characterSet : 224 ,
76
- columnLength : 256 ,
77
79
columnType : 253 ,
78
80
flags : 0 ,
79
81
decimals : 31
@@ -86,7 +88,6 @@ const expectedFields = [
86
88
table : '' ,
87
89
orgTable : '' ,
88
90
characterSet : 224 ,
89
- columnLength : 25264128 ,
90
91
columnType : 250 ,
91
92
flags : 0 ,
92
93
decimals : 31
@@ -99,7 +100,6 @@ const expectedFields = [
99
100
table : '' ,
100
101
orgTable : '' ,
101
102
characterSet : 224 ,
102
- columnLength : 40 ,
103
103
columnType : 253 ,
104
104
flags : 0 ,
105
105
decimals : 31
@@ -112,7 +112,6 @@ const expectedFields = [
112
112
table : '' ,
113
113
orgTable : '' ,
114
114
characterSet : 224 ,
115
- columnLength : 16384 ,
116
115
columnType : 253 ,
117
116
flags : 0 ,
118
117
decimals : 31
@@ -125,7 +124,6 @@ const expectedFields = [
125
124
table : '' ,
126
125
orgTable : '' ,
127
126
characterSet : 224 ,
128
- columnLength : 256 ,
129
127
columnType : 253 ,
130
128
flags : 0 ,
131
129
decimals : 31
@@ -138,7 +136,6 @@ const expectedFields = [
138
136
table : '' ,
139
137
orgTable : '' ,
140
138
characterSet : 224 ,
141
- columnLength : 16384 ,
142
139
columnType : 253 ,
143
140
flags : 0 ,
144
141
decimals : 31
@@ -151,7 +148,6 @@ const expectedFields = [
151
148
table : '' ,
152
149
orgTable : '' ,
153
150
characterSet : 224 ,
154
- columnLength : 4096 ,
155
151
columnType : 253 ,
156
152
flags : 0 ,
157
153
decimals : 31
@@ -164,7 +160,6 @@ const expectedFields = [
164
160
table : '' ,
165
161
orgTable : '' ,
166
162
characterSet : 63 ,
167
- columnLength : 10 ,
168
163
columnType : 8 ,
169
164
flags : 160 ,
170
165
decimals : 0
@@ -177,7 +172,6 @@ const expectedFields = [
177
172
table : '' ,
178
173
orgTable : '' ,
179
174
characterSet : 63 ,
180
- columnLength : 4 ,
181
175
columnType : 5 ,
182
176
flags : 128 ,
183
177
decimals : 2
@@ -190,7 +184,6 @@ const expectedFields = [
190
184
table : '' ,
191
185
orgTable : '' ,
192
186
characterSet : 224 ,
193
- columnLength : 1020 ,
194
187
columnType : 253 ,
195
188
flags : 1 ,
196
189
decimals : 31
@@ -201,6 +194,9 @@ process.on('exit', () => {
201
194
assert . deepEqual ( rows , expectedRows ) ;
202
195
fields . forEach ( ( f , index ) => {
203
196
const fi = f . inspect ( ) ;
197
+ // "columnLength" is non-deterministic
198
+ delete fi . columnLength ;
199
+
204
200
assert . deepEqual (
205
201
Object . keys ( fi ) . sort ( ) ,
206
202
Object . keys ( expectedFields [ index ] ) . sort ( )
0 commit comments