Skip to content

Commit

Permalink
TEIID-5358 adding recursive ete support
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Jun 12, 2018
1 parent 443ed89 commit c7dcb0e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@
@Translator(name="db2", description="A translator for IBM DB2 Database")
public class DB2ExecutionFactory extends BaseDB2ExecutionFactory {

public static final Version EIGHT_0 = Version.getVersion("8.0"); //$NON-NLS-1$
public static final Version NINE_1 = Version.getVersion("9.1"); //$NON-NLS-1$
public static final Version NINE_5 = Version.getVersion("9.5"); //$NON-NLS-1$
public static final Version TEN_0 = Version.getVersion("10.0"); //$NON-NLS-1$

public static final Version FIVE_4 = Version.getVersion("5.4"); //$NON-NLS-1$
public static final Version SIX_1 = Version.getVersion("6.1"); //$NON-NLS-1$
private static final String WEEK_ISO = "WEEK_ISO";

Expand Down Expand Up @@ -226,5 +225,10 @@ protected ResultSet executeSequenceQuery(Connection conn)

};
}

@Override
public boolean supportsRecursiveCommonTableExpressions() {
return getVersion().compareTo(TEN_0) >= 0;
}

}

0 comments on commit c7dcb0e

Please sign in to comment.