Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail loading JSONB with array property #51

Closed
MugeSo opened this issue Mar 14, 2016 · 5 comments
Closed

Fail loading JSONB with array property #51

MugeSo opened this issue Mar 14, 2016 · 5 comments

Comments

@MugeSo
Copy link

MugeSo commented Mar 14, 2016

var Model = sequelize.define('something', {
    jsonbField: {
        type: Sequelize.JSONB,
        allowNull: false
    }
});

sequelizeFixtures.loadFixture({
    model: 'something',
    data: {
        jsonbField: {
            prop: [111, 333]
        }
    }
}, {something: Model});

Then got

Unhandled rejection SequelizeDatabaseError: operator does not exist: text = text[]

See also sequelize/sequelize#5582

@MugeSo
Copy link
Author

MugeSo commented Mar 20, 2016

Maybe, this can be fixed by Earnest-Labs@d6cf0ca

@domasx2
Copy link
Owner

domasx2 commented Mar 20, 2016

which sequelize version are you on?

@MugeSo
Copy link
Author

MugeSo commented Mar 20, 2016

3.19.3

@domasx2
Copy link
Owner

domasx2 commented Mar 23, 2016

Added a workaround with #51

This is really a sequelize issue though...

@domasx2 domasx2 closed this as completed Mar 23, 2016
@MugeSo
Copy link
Author

MugeSo commented Mar 24, 2016

@domasx2 thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants