Repository navigation
Closed
Labels
dialect: mariadbFor issues and PRs. Things that involve MariaDB (and do not involve all dialects).type: otherDEPRECATED: replace with the "meta" issue type
Description
Issue Creation Checklist
- I have read the contribution guidelines
Issue Description
We want to merge #15011 later, but some tests are failing.
1) [MARIADB] DataTypes
calls parse and stringify for INTEGER:
AssertionError: expected spy to have been called at least once, but it was never called
at Assertion.<anonymous> (node_modules/sinon-chai/lib/sinon-chai.js:83:18)
at Assertion.propertyGetter (node_modules/chai/lib/chai/utils/addProperty.js:62:29)
at Object.proxyGetter [as get] (node_modules/chai/lib/chai/utils/proxify.js:98:22)
at testSuccess (test/integration/data-types.test.js:92:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Context.<anonymous> (test/integration/data-types.test.js:211:5)
2) [MARIADB] DataTypes
calls parse and stringify for BIGINT:
AssertionError: expected spy to have been called at least once, but it was never called
at Assertion.<anonymous> (node_modules/sinon-chai/lib/sinon-chai.js:83:18)
at Assertion.propertyGetter (node_modules/chai/lib/chai/utils/addProperty.js:62:29)
at Object.proxyGetter [as get] (node_modules/chai/lib/chai/utils/proxify.js:98:22)
at testSuccess (test/integration/data-types.test.js:92:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Context.<anonymous> (test/integration/data-types.test.js:227:7)
3) [MARIADB] Pooling
network / connection errors
should obtain new connection when old connection is abruptly closed:
TypeError: connection.emit is not a function
at simulateUnexpectedError (test/integration/pool.test.js:99:22)
at Context.<anonymous> (test/integration/pool.test.js:110:7)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Issue Template Checklist
Is this issue dialect-specific?
- Yes. This issue only applies to the following dialect(s): MariaDB
Would you be willing to resolve this issue by submitting a Pull Request?
- Yes, I have the time and I know how to start.
Metadata
Metadata
Assignees
Labels
dialect: mariadbFor issues and PRs. Things that involve MariaDB (and do not involve all dialects).type: otherDEPRECATED: replace with the "meta" issue type
Type
Projects
- StatusShow more project fieldsDone
Activity
WikiRik commentedon Sep 18, 2022
@ephys since two of the failing tests are connected to DataTypes I think we should wait with making the fixes to upgrade this until after we merged #14505
WikiRik commentedon Nov 20, 2022
Upgrading to 3.0.2 now causes the following failed tests;
ephys commentedon Nov 20, 2022
All errors except one are caused by MariaDB returning JS BigInts instead of strings by default for bigints. It's a good change but we should provide a way to opt back to using strings for backward compatibility before we use bigints everywhere by default (task #14296)
In the meantime we can make mariadb return strings for bigints
WikiRik commentedon Apr 9, 2023
Linking #15311 here so we don't forget about it