Skip to content

Commit

Permalink
make offset on QuerySpec a primitive int and add toString() to Output…
Browse files Browse the repository at this point in the history
…Name
  • Loading branch information
mfussenegger committed Feb 6, 2015
1 parent a55956b commit 6b6ec7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/src/main/java/io/crate/analyze/QuerySpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class QuerySpec {
private List<Symbol> outputs;
private WhereClause where;
private Integer limit;
private Integer offset = 0;
private int offset = 0;
private boolean hasAggregates = false;

@Nullable
Expand Down Expand Up @@ -73,7 +73,7 @@ public QuerySpec limit(@Nullable Integer limit) {
return this;
}

public Integer offset() {
public int offset() {
return offset;
}

Expand Down
5 changes: 5 additions & 0 deletions sql/src/main/java/io/crate/metadata/OutputName.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ public OutputName(String name) {
public String outputName() {
return name;
}

@Override
public String toString() {
return name;
}
}

0 comments on commit 6b6ec7e

Please sign in to comment.