[hibernate-dev] Suggestions for fixing HHH-13570?

Gail Badner gbadner at redhat.com
Wed Aug 14 01:50:00 EDT 2019


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 at 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 at 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
>>
>


More information about the hibernate-dev mailing list