Why not support "For Update" in postgres? #2345
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2345
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It doesn't work with postgres and returns error "only support mysql for update".
Why not support "For Update" in postgres?
PostgreSQL supports "For Update".
I wonder it.
If there is another way, tell me please.
I don't know how to support it. If you know, please send a PR with make for update test enable for postgres.
Thank you for your response.
I changed code from
to
in local files.
And I tried to use
ForUpdate()
.It worked with postgres.
I will make PR.
@lunny
demachitse/xorm#1 (comment)
Please send to the main repository.
@lunny
I don't have permission to main repository.
So, I forked main repository and fixed in forked repository.
demachitse/xorm#1
I tried merge to main repository from forked repository, but I don't know how to it.
For Gihub.com the GUI for merging into the base repository exists in the PR page creation.
But Gitea.com doesn't exists it.
That already tell you.
demachitse/xorm#1 (comment)
Looks like old cockroachdb doesn't support for update yet but new cockroachdb has other problems.
Could you please explain what the specific problem is? I also have this requirement and urgently need to resolve it.