HHH-11338 - Apply HHH-11194 fix to Dialect subclasses
This commit is contained in:
parent
10972ffe30
commit
d3dd28e474
|
@ -165,7 +165,7 @@ public class Ingres9Dialect extends IngresDialect {
|
||||||
// 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 class IngresDialect extends Dialect {
|
||||||
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 class SQLServer2005Dialect extends SQLServerDialect {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LimitHandler getLimitHandler() {
|
protected LimitHandler getDefaultLimitHandler() {
|
||||||
return new SQLServer2005LimitHandler();
|
return new SQLServer2005LimitHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,10 @@ public class SQLServerDialect extends AbstractTransactSQLDialect {
|
||||||
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
|
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
|
||||||
return new LegacyLimitHandler( this );
|
return new LegacyLimitHandler( this );
|
||||||
}
|
}
|
||||||
|
return getDefaultLimitHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected LimitHandler getDefaultLimitHandler() {
|
||||||
return limitHandler;
|
return limitHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue