Skip to content

Commit 229865a

Browse files
committed
Mark SAP SQLAnywhere as SupportsSelectForUpdate false
1 parent 6875e76 commit 229865a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/NHibernate.Test/Async/Linq/QueryLock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class QueryLockAsync : LinqTestCase
2929
{
3030
protected override bool AppliesTo(Dialect.Dialect dialect)
3131
{
32-
return TestDialect.SupportsSelectForUpdate && !(dialect is SapSQLAnywhere17Dialect);
32+
return TestDialect.SupportsSelectForUpdate;
3333
}
3434

3535
protected override bool AppliesTo(ISessionFactoryImplementor factory)

src/NHibernate.Test/Linq/QueryLock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class QueryLock : LinqTestCase
1717
{
1818
protected override bool AppliesTo(Dialect.Dialect dialect)
1919
{
20-
return TestDialect.SupportsSelectForUpdate && !(dialect is SapSQLAnywhere17Dialect);
20+
return TestDialect.SupportsSelectForUpdate;
2121
}
2222

2323
protected override bool AppliesTo(ISessionFactoryImplementor factory)

src/NHibernate.Test/TestDialects/SapSQLAnywhere17TestDialect.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@ public SapSQLAnywhere17TestDialect(Dialect.Dialect dialect)
3838
/// <c>numeric</c>. See https://stackoverflow.com/q/52558715/1178314.
3939
/// </remarks>
4040
public override bool HasBrokenTypeInferenceOnSelectedParameters => true;
41+
42+
/// <summary>
43+
/// Does not support SELECT FOR UPDATE
44+
/// </summary>
45+
public override bool SupportsSelectForUpdate => false;
4146
}
4247
}

0 commit comments

Comments
 (0)