Little cleanup
This commit is contained in:
parent
a00ad0d54e
commit
dc6bb579c2
@ -1175,10 +1175,7 @@ impl<'conn> PostgresStatement<'conn> {
|
|||||||
}
|
}
|
||||||
CommandComplete { tag } => {
|
CommandComplete { tag } => {
|
||||||
let s = tag.split(' ').last().unwrap();
|
let s = tag.split(' ').last().unwrap();
|
||||||
num = match FromStr::from_str(s) {
|
num = FromStr::from_str(s).unwrap_or(0);
|
||||||
None => 0,
|
|
||||||
Some(n) => n
|
|
||||||
};
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
EmptyQueryResponse => {
|
EmptyQueryResponse => {
|
||||||
|
Loading…
Reference in New Issue
Block a user