You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was introduced with commit 3284808
as part of feature #4764
MySQL and SQLite works fine. My assumption is that only MSSQL is affected.
As a workaround I was able to use READ UNCOMMITTED transaction instead of dirty_read on the queries. But I'm not sure if this approach has any unwanted side effects.
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
The text was updated successfully, but these errors were encountered:
Issue description
When I use setLock('dirty_read') in an inner query the resulted MSSQL query is invalid.
Expected Behavior
The code below should result in a valid MSSQL query.
Actual Behavior
The code results in an SQL error:
Incorrect syntax near 'WITH'.
and
Incorrect syntax near 'NOLOCK'. Expecting '(', or SELECT.
The generated SQL query is the following:
On line 11 after "last_edit" the
WITH (NOLOCK)
is invalid.Steps to reproduce
You can use the entity below, create and fill the table according to the code example above.
My Environment
Additional Context
This issue was introduced with commit 3284808
as part of feature
#4764
MySQL and SQLite works fine. My assumption is that only MSSQL is affected.
As a workaround I was able to use READ UNCOMMITTED transaction instead of dirty_read on the queries. But I'm not sure if this approach has any unwanted side effects.
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
The text was updated successfully, but these errors were encountered: