@Override
	public void appendLimitOffset(SQLStatement stat, long limit, long offset) {
		// FETCH/OFFSET added in 10.5
		if (databaseVersion >= 10.5f) {
			if (offset > 0) {
				stat.appendSQL(" OFFSET " + offset + (offset == 1 ? " ROW" : " ROWS"));
			}
			if (limit > 0) {
				stat.appendSQL(" FETCH NEXT " + limit + (limit == 1 ? " ROW" : " ROWS") + " ONLY");
			}
		}
	}