Skip to content

Commit

Permalink
fixing issue #118
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeebbbbrrrr committed May 19, 2016
1 parent 6935b4e commit 0d4c77c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
Expand Up @@ -17,7 +17,7 @@ public String getStem() {
}

public int getMaxTerms() {
return ((Number) getChild(1).getValue()).intValue();
return Integer.valueOf(String.valueOf(getChild(1).getValue()));
}

/** Accept the visitor. **/
Expand Down
21 changes: 21 additions & 0 deletions postgres/src/test/expected/issue-118.out
@@ -0,0 +1,21 @@
SELECT term FROM zdb_significant_terms('so_posts', 'owner_display_name', '^.*', 'java', 5000);
term
------------------
user1249
user104150
user1449
striplingwarrior
user7197
user39685
martin
cletus
konrad rudolph
user42242
kevin
user4051
duffymo
sergio
user29079
user8685
(16 rows)

1 change: 1 addition & 0 deletions postgres/src/test/sql/issue-118.sql
@@ -0,0 +1 @@
SELECT term FROM zdb_significant_terms('so_posts', 'owner_display_name', '^.*', 'java', 5000);
3 changes: 2 additions & 1 deletion postgres/src/test/tests.list
Expand Up @@ -72,4 +72,5 @@ issue-88
issue-93
issue-104
zdb_arbitrary_aggregate
issue-111
issue-111
issue-118

0 comments on commit 0d4c77c

Please sign in to comment.