Skip to content

Commit

Permalink
Fix the order how long/lat in GEOADD are passed to redis #134
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Sep 10, 2015
1 parent cba44d4 commit 0df68c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ public Command<K, V, String> clusterReset(boolean hard) {
}

public Command<K, V, Long> geoadd(K key, double longitude, double latitude, V member) {
CommandArgs<K, V> args = new CommandArgs<K, V>(codec).addKey(key).add(latitude).add(longitude).addValue(member);
CommandArgs<K, V> args = new CommandArgs<K, V>(codec).addKey(key).add(longitude).add(latitude).addValue(member);
return createCommand(GEOADD, new IntegerOutput<K, V>(codec), args);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public void geoaddMultiWrongArgument() throws Exception {
}

protected void prepareGeo() {
redis.geoadd(key, 8.6638775, 49.5282537, "Weinheim", 8.3796281, 48.9978127, "EFS9", 8.665351, 49.553302, "Bahn");
redis.geoadd(key, 8.6638775, 49.5282537, "Weinheim");
redis.geoadd(key, 8.3796281, 48.9978127, "EFS9", 8.665351, 49.553302, "Bahn");
}

@Test
Expand Down

0 comments on commit 0df68c1

Please sign in to comment.