mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#2389 - redis.clients.jedis.exceptions.JedisDataException: ERR wrong number of arguments for 'mget' command
This commit is contained in:
1 parent
8ee67410f9
commit
5b07309f51
3 files changed
+26
-5
No files matched your search
@@ -11,6 +11,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -18,6 +19,22 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class IntegrationTest {
|
||||
|
||||
@Test
|
||||
void mget_when_emptyCollectionOfIds() {
|
||||
|
||||
List<RCust> f0 = new QRCust()
|
||||
.setIdIn(Collections.emptyList())
|
||||
.findList();
|
||||
|
||||
assertThat(f0).isEmpty();
|
||||
|
||||
List<RCust> f1 = new QRCust()
|
||||
.id.in(Collections.emptyList())
|
||||
.findList();
|
||||
|
||||
assertThat(f1).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
void mput_via_setIdIn() throws InterruptedException {
|
||||
|
||||
@@ -187,8 +204,8 @@ class IntegrationTest {
|
||||
|
||||
private List<Person> nameStartsWith(String pattern) {
|
||||
return new QPerson()
|
||||
.name.istartsWith(pattern)
|
||||
.setUseQueryCache(true)
|
||||
.findList();
|
||||
.name.istartsWith(pattern)
|
||||
.setUseQueryCache(true)
|
||||
.findList();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user