HHH-11338 - Apply HHH-11194 fix to Dialect subclasses

This commit is contained in:
Vlad Mihalcea 2016-11-24 11:26:56 +02:00
parent 10972ffe30
commit d3dd28e474
4 changed files with 10 additions and 2 deletions

View File

@ -165,7 +165,7 @@ public class Ingres9Dialect extends IngresDialect {
// limit/offset support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Override
public LimitHandler getLimitHandler() {
public LimitHandler getDefaultLimitHandler() {
return LIMIT_HANDLER;
}

View File

@ -225,6 +225,10 @@ public class IngresDialect extends Dialect {
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
return LegacyFirstLimitHandler.INSTANCE;
}
return getDefaultLimitHandler();
}
protected LimitHandler getDefaultLimitHandler() {
return FirstLimitHandler.INSTANCE;
}

View File

@ -58,7 +58,7 @@ public class SQLServer2005Dialect extends SQLServerDialect {
}
@Override
public LimitHandler getLimitHandler() {
protected LimitHandler getDefaultLimitHandler() {
return new SQLServer2005LimitHandler();
}

View File

@ -88,6 +88,10 @@ public class SQLServerDialect extends AbstractTransactSQLDialect {
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
return new LegacyLimitHandler( this );
}
return getDefaultLimitHandler();
}
protected LimitHandler getDefaultLimitHandler() {
return limitHandler;
}