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

[Bug] keys that start with double underscores (__) #227

Open
baudointran opened this issue Sep 5, 2024 · 0 comments
Open

[Bug] keys that start with double underscores (__) #227

baudointran opened this issue Sep 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@baudointran
Copy link

Your Environment

Software Version(s)
typeorm-fixtures 3.1.0
Node 20.11.0
npm/Yarn 10.2.4
Operating System ubuntu

I'm encountering an issue when using typeorm-fixtures-cli to insert data that contains keys or columns starting with double underscores (__). Specifically, the insertion fails, and I suspect it might be related to how TypeORM or the underlying database handles these keys.

Steps to Reproduce:
Create a fixture with a key that starts with __. For example:
yaml
Copier le code
EntityName:
entity_1:
__myKey: "SomeValue"
anotherField: "AnotherValue"
Run typeorm-fixtures-cli to load the fixture into the database.
Observe that the insertion fails with an error.

Expected Behavior:
The data should be inserted without issues, regardless of whether the keys or columns start with double underscores.

@baudointran baudointran added the bug Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants