I chatted with Andrea about this.
I'll skip the test using @RequiresDialectFeature( value
= DialectChecks.SupportsLockTimeouts.class )
On Tue, Aug 13, 2019 at 6:45 PM Gail Badner <gbadner(a)redhat.com> wrote:
An alternative is to mark the tests with:
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
since SybaseASE15Dialect#supportsLockTimeouts returns false.
On Tue, Aug 13, 2019 at 6:29 PM Gail Badner <gbadner(a)redhat.com> wrote:
> LockModeTest executes the following SQL for Sybase and SQL Server:
>
> UPDATE T_LOCK_A WITH(NOWAIT) SET a_value = :value where id = :id";
>
> This fails on Sybase, because it doesn't recognize WITH(NOWAIT).
>
> If I remove WITH(NOWAIT), the statement blocks until Junit times out.
>
> I'm having trouble finding some equivalent to WITH(NOWAIT) for Sybase.
> Does anyone know if there is one?
>
> Should I just skip this test for Sybase?
>
> Thanks,
> Gail
>