mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
HHH-11338 - Apply HHH-11194 fix to Dialect subclasses
This commit is contained in:
parent
10972ffe30
commit
d3dd28e474
@ -165,7 +165,7 @@ public boolean doesRepeatableReadCauseReadersToBlockWriters() {
|
|||||||
// limit/offset support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// limit/offset support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LimitHandler getLimitHandler() {
|
public LimitHandler getDefaultLimitHandler() {
|
||||||
return LIMIT_HANDLER;
|
return LIMIT_HANDLER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,6 +225,10 @@ public LimitHandler getLimitHandler() {
|
|||||||
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
|
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
|
||||||
return LegacyFirstLimitHandler.INSTANCE;
|
return LegacyFirstLimitHandler.INSTANCE;
|
||||||
}
|
}
|
||||||
|
return getDefaultLimitHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected LimitHandler getDefaultLimitHandler() {
|
||||||
return FirstLimitHandler.INSTANCE;
|
return FirstLimitHandler.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ public SQLServer2005Dialect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LimitHandler getLimitHandler() {
|
protected LimitHandler getDefaultLimitHandler() {
|
||||||
return new SQLServer2005LimitHandler();
|
return new SQLServer2005LimitHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,6 +88,10 @@ public LimitHandler getLimitHandler() {
|
|||||||
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
|
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
|
||||||
return new LegacyLimitHandler( this );
|
return new LegacyLimitHandler( this );
|
||||||
}
|
}
|
||||||
|
return getDefaultLimitHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected LimitHandler getDefaultLimitHandler() {
|
||||||
return limitHandler;
|
return limitHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user