You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON columns returned differently depending on whether MySQL or MariaDB is used #8702
docsFor issues and PRs. Things related to documentation, such as changes in the manuals / API reference.status: wipFor issues and PRs. Applied when the PR is not ready yet / when work to close the issue has started.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂
docsFor issues and PRs. Things related to documentation, such as changes in the manuals / API reference.status: wipFor issues and PRs. Applied when the PR is not ready yet / when work to close the issue has started.
Activity
ivokund commentedon Nov 28, 2017
I also note that a quick-hack that fixes the issue is to define a manual getter in the column definition as this:
But I assume that this is not supposed to be required?
sushantdhiman commentedon Nov 28, 2017
I would like to clarify that Sequelize only supports MariaDB because they (used to?) follow MySQL implementation and maintain API compliance.
If MariaDB and MySQL are diverging then I am afraid we cant fix this as there is no "real" MariaDB dialect in Sequelize
stale commentedon Feb 26, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂
SimonSchick commentedon May 9, 2018
@sushantdhiman I ran into this bug as well today, wouldn't it be possible to incorporate this workaround/getter into sequelize? It's only about 5 loc.
jasalo commentedon Oct 25, 2018
@ivokund Thanks for the code snippet! Just one thing to add, a missing argument on the get function:
knoxcard commentedon Dec 14, 2018
dialect: 'mariadb'has been reintroduced back into Sequelize v5, so this can now be used to differ logic between MySQL/MariaDB.Update sequelize to v5 and set dialect to MariaDB, fixing the heartOf…
soryy708 commentedon Oct 6, 2019
According to the manual, JSON is not supported for MariaDB dialect.
papb commentedon Oct 30, 2019
@soryy708 I am pretty sure that is a mistake in the docs, I will look into it