Skip to content

Commit 357887a

Browse files
committed
added field.type to test assertions
1 parent dafa080 commit 357887a

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

test/integration/connection/test-binary-multiple-results.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const fields1 = [
3939
catalog: 'def',
4040
characterSet: 63,
4141
columnType: 8,
42+
type: 8,
4243
decimals: 0,
4344
flags: 129,
4445
name: '1',
@@ -53,6 +54,7 @@ const nr_fields = [
5354
catalog: 'def',
5455
characterSet: 63,
5556
columnType: 3,
57+
type: 3,
5658
decimals: 0,
5759
flags: 0,
5860
name: 'test',

test/integration/connection/test-disconnects.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const server = common.createServer(
6161
characterSet: 63,
6262
columnLength: 1,
6363
columnType: 8,
64+
type: 8,
6465
flags: 129,
6566
decimals: 0
6667
}

test/integration/connection/test-execute-nocolumndef.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const expectedFields = [
5353
orgTable: '',
5454
characterSet: 63,
5555
columnType: 8,
56+
type: 8,
5657
flags: 161,
5758
decimals: 0
5859
},
@@ -65,6 +66,7 @@ const expectedFields = [
6566
orgTable: '',
6667
characterSet: 224,
6768
columnType: 253,
69+
type: 253,
6870
flags: 1,
6971
decimals: 31
7072
},
@@ -77,6 +79,7 @@ const expectedFields = [
7779
orgTable: '',
7880
characterSet: 224,
7981
columnType: 253,
82+
type: 253,
8083
flags: 0,
8184
decimals: 31
8285
},
@@ -89,6 +92,7 @@ const expectedFields = [
8992
orgTable: '',
9093
characterSet: 224,
9194
columnType: 250,
95+
type: 250,
9296
flags: 0,
9397
decimals: 31
9498
},
@@ -101,6 +105,7 @@ const expectedFields = [
101105
orgTable: '',
102106
characterSet: 224,
103107
columnType: 253,
108+
type: 253,
104109
flags: 0,
105110
decimals: 31
106111
},
@@ -113,6 +118,7 @@ const expectedFields = [
113118
orgTable: '',
114119
characterSet: 224,
115120
columnType: 253,
121+
type: 253,
116122
flags: 0,
117123
decimals: 31
118124
},
@@ -125,6 +131,7 @@ const expectedFields = [
125131
orgTable: '',
126132
characterSet: 224,
127133
columnType: 253,
134+
type: 253,
128135
flags: 0,
129136
decimals: 31
130137
},
@@ -137,6 +144,7 @@ const expectedFields = [
137144
orgTable: '',
138145
characterSet: 224,
139146
columnType: 253,
147+
type: 253,
140148
flags: 0,
141149
decimals: 31
142150
},
@@ -149,6 +157,7 @@ const expectedFields = [
149157
orgTable: '',
150158
characterSet: 224,
151159
columnType: 253,
160+
type: 253,
152161
flags: 0,
153162
decimals: 31
154163
},
@@ -161,6 +170,7 @@ const expectedFields = [
161170
orgTable: '',
162171
characterSet: 63,
163172
columnType: 8,
173+
type: 8,
164174
flags: 160,
165175
decimals: 0
166176
},
@@ -173,6 +183,7 @@ const expectedFields = [
173183
orgTable: '',
174184
characterSet: 63,
175185
columnType: 5,
186+
type: 5,
176187
flags: 128,
177188
decimals: 2
178189
},
@@ -185,6 +196,7 @@ const expectedFields = [
185196
orgTable: '',
186197
characterSet: 224,
187198
columnType: 253,
199+
type: 253,
188200
flags: 1,
189201
decimals: 31
190202
}

test/integration/connection/test-multiple-results.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const fields1 = [
3838
catalog: 'def',
3939
characterSet: 63,
4040
columnType: 8,
41+
type: 8,
4142
decimals: 0,
4243
flags: 129,
4344
name: '1',
@@ -52,6 +53,7 @@ const nr_fields = [
5253
catalog: 'def',
5354
characterSet: 63,
5455
columnType: 3,
56+
type: 3,
5557
decimals: 0,
5658
flags: 0,
5759
name: 'test',

test/unit/packets/test-column-definition.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ let packet = ColumnDefinition.toPacket(
1919
columnLength: 500,
2020
flags: 32896,
2121
columnType: 0x8,
22+
type: 0x8,
2223
decimals: 1
2324
},
2425
sequenceId
@@ -42,6 +43,7 @@ packet = ColumnDefinition.toPacket(
4243
columnLength: 500,
4344
flags: 32896,
4445
columnType: 0x8,
46+
type: 0x8,
4547
decimals: 1
4648
},
4749
sequenceId
@@ -64,6 +66,7 @@ const inputColDef = {
6466
columnLength: 0x1c,
6567
flags: 0,
6668
columnType: 0xfd,
69+
type: 0xfd,
6770
decimals: 0x1f
6871
}
6972
packet = ColumnDefinition.toPacket(inputColDef, sequenceId);

0 commit comments

Comments
 (0)