Skip to content

Commit

Permalink
HHH-11338 - Apply HHH-11194 fix to Dialect subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Dec 14, 2016
1 parent 10972ff commit d3dd28e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Expand Up @@ -165,7 +165,7 @@ public boolean doesRepeatableReadCauseReadersToBlockWriters() {
// limit/offset support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@Override
public LimitHandler getLimitHandler() {
public LimitHandler getDefaultLimitHandler() {
return LIMIT_HANDLER;
}

Expand Down
Expand Up @@ -225,6 +225,10 @@ public LimitHandler getLimitHandler() {
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
return LegacyFirstLimitHandler.INSTANCE;
}
return getDefaultLimitHandler();
}

protected LimitHandler getDefaultLimitHandler() {
return FirstLimitHandler.INSTANCE;
}

Expand Down
Expand Up @@ -58,7 +58,7 @@ public SQLServer2005Dialect() {
}

@Override
public LimitHandler getLimitHandler() {
protected LimitHandler getDefaultLimitHandler() {
return new SQLServer2005LimitHandler();
}

Expand Down
Expand Up @@ -88,6 +88,10 @@ public LimitHandler getLimitHandler() {
if ( isLegacyLimitHandlerBehaviorEnabled() ) {
return new LegacyLimitHandler( this );
}
return getDefaultLimitHandler();
}

protected LimitHandler getDefaultLimitHandler() {
return limitHandler;
}

Expand Down

0 comments on commit d3dd28e

Please sign in to comment.