JedisURIHelper.getDBIndex() now returns 0 when db index is not provided
This commit is contained in:
@@ -68,7 +68,7 @@ public class BinaryJedis implements BasicCommands, BinaryJedisCommands,
|
||||
}
|
||||
|
||||
Integer dbIndex = JedisURIHelper.getDBIndex(uri);
|
||||
if (dbIndex != null) {
|
||||
if (dbIndex > 0) {
|
||||
client.select(dbIndex);
|
||||
client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user