We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all, we've run into an issue when trying to insert arrays of enums into the database because of how array serializers work.
Context We use typeorm pglite driver to run tests. The PGLite instance gets initiated, we run the db migrations, and then we execute tests.
Reproduction
_initArrayTypes
CREATE TYPE mood AS ENUM ('sad', 'happy'); CREATE TABLE IF NOT EXISTS test ( id SERIAL PRIMARY KEY, moods mood[] );
await db.query(`INSERT INTO test (moods) VALUES ($1);`,[['sad', 'happy']],)
Solution
I see two possible solutions:
I'd appreciate any help, I am happy to submit a PR to address the issue.
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi all, we've run into an issue when trying to insert arrays of enums into the database because of how array serializers work.
Context
We use typeorm pglite driver to run tests. The PGLite instance gets initiated, we run the db migrations, and then we execute tests.
Reproduction
_initArrayTypes
Solution
I see two possible solutions:
I'd appreciate any help, I am happy to submit a PR to address the issue.
Thanks!
The text was updated successfully, but these errors were encountered: