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

Delete for composite PK resource doesn't work for sqlite #2

Open
jimlambrt opened this issue Nov 29, 2021 · 1 comment
Open

Delete for composite PK resource doesn't work for sqlite #2

jimlambrt opened this issue Nov 29, 2021 · 1 comment

Comments

@jimlambrt
Copy link
Collaborator

Describe the bug

Resources with composite PKs can't be deleted using RW.Delete(...) since the SQL generated is incorrect. See: go-gorm/gorm#4879

To Reproduce

In delete_test.go/TestDb_Delete(...) remove conditional in multi-column test that skips sqlite dialects and the test will fail.

Additional context

Once go-gorm/gorm#4879 is fixed, we can update the gorm dependency and enable the multi-column delete test for sqlite

@jimlambrt
Copy link
Collaborator Author

The current work around is to use Exec(...) to delete composite PK resources.

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

1 participant