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
Cockroach Lock Modes #8249
Labels
Comments
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 6, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 7, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 7, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 11, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Oct 11, 2021
wodka
added a commit
to wodka/typeorm
that referenced
this issue
Nov 18, 2021
pleerock
pushed a commit
that referenced
this issue
Nov 18, 2021
HeartPattern
pushed a commit
to HeartPattern/typeorm
that referenced
this issue
Nov 29, 2021
HeartPattern
pushed a commit
to HeartPattern/typeorm
that referenced
this issue
Nov 29, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Cockroach does support the lock modes as Postgres
https://www.cockroachlabs.com/docs/stable/select-for-update.html
But when trying to lock a transaction it will throw LockNotSupportedOnGivenDriverError
Code Block is in here https://github.com/alfonsoal1983/typeorm/blob/master/src/query-builder/SelectQueryBuilder.ts#L1596
Expected Behavior
it should allow both pessimistic_read and pessimistic_write lock
Actual Behavior
trying to lock a transaction will throw LockNotSupportedOnGivenDriverError
Steps to Reproduce
My Environment
Additional Context
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: