We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3eeda2 commit b2e5d3dCopy full SHA for b2e5d3d
test/mysql_test.js
@@ -289,7 +289,12 @@ lab.experiment('mysql', () => {
289
expect(primaryColumn.meta.column_key).to.equal('PRI');
290
291
// Testing the "after" constraint
292
- expect(columns[1].getName()).to.equal('date');
+ // mysql > 8 does not return the same way anymore,
293
+ // results may be in random order, so we check explicitly
294
+ // the element with ordinal position 2
295
+ expect(
296
+ columns.find((x) => x.meta.ordinal_position === 2).getName()
297
+ ).to.equal('date');
298
});
299
300
0 commit comments