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

'table name specified more than once' postgres error #746

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ajhodges
Copy link

Explain your user case and expected results

This is a test case for the issue described in go-gorm/gorm#7055

Using this branch: GORM_DIALECT=postgres go test

Output:

[0.864ms] [rows:1] UPDATE "users" SET "name"='jinzhu 2',"updated_at"='2024-06-24 15:41:25.207' FROM "users" WHERE id = 1 AND "users"."deleted_at" IS NULL AND "users"."id" = 1 AND "id" = 1
--- FAIL: TestGORM (0.00s)
    main_test.go:22: Failed, got error: ERROR: table name "users" specified more than once (SQLSTATE 42712)

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

Successfully merging this pull request may close these issues.

1 participant