mariadb-corporation / mariadb-connector-nodejs

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. MariaDB Connector/Node.js is LGPL licensed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sequelize delete property of meta object error

knoxcard2 opened this issue · comments

/etc/nginx/domains/buycanna.io/node_modules/sequelize/lib/dialects/mariadb/query.js:110
delete data.meta;

TypeError: Cannot delete property 'meta' of [object Array]
at Query.formatResults (/etc/nginx/domains/buycanna.io/node_modules/sequelize/lib/dialects/mariadb/query.js:110:7)
at Query.run (/etc/nginx/domains/buycanna.io/node_modules/sequelize/lib/dialects/mariadb/query.js:73:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /etc/nginx/domains/buycanna.io/node_modules/sequelize/lib/sequelize.js:314:16

Node.js v19.6.1

This rather looks like a problem with the sequelize package?

It is, sequelize does not support v3 of this connector yet. Almost all tests of the sequelize package pass on 3.0.2 but more fail on 3.1.0 due to the non-enumerable meta. The advice of the sequelize team is to not upgrade to v3 of the mariadb connector until v7 of sequelize

do you have some link @WikiRik / @knoxcard2 ? correction is easy to do, and i can make a PR

do you have some link @WikiRik / @knoxcard2 ? correction is easy to do, and i can make a PR

You can check out which tests are failing in this renovate PR; sequelize/sequelize#15311

from Rik Smale :

Starting with v7.0.0-alpha27 (released soon) sequelize will support 3.x. See sequelize/sequelize#16139
Support for 3.x is not planned for sequelize v6 at this moment

Ah yes, I forgot this issue was open as well. Thanks for posting it here!

Until v3 of the connector is supported:

npm install --save mariadb@2