Add back panics
This commit is contained in:
parent
691221e714
commit
a5b230f67c
@ -246,8 +246,13 @@ pub trait EntityTrait: EntityName {
|
|||||||
if let Some(key) = keys.next() {
|
if let Some(key) = keys.next() {
|
||||||
let col = key.into_column();
|
let col = key.into_column();
|
||||||
select = select.filter(col.eq(v));
|
select = select.filter(col.eq(v));
|
||||||
|
} else {
|
||||||
|
panic!("primary key arity mismatch");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if keys.next().is_some() {
|
||||||
|
panic!("primary key arity mismatch");
|
||||||
|
}
|
||||||
select
|
select
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user