mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 07:45:35 +01:00
Fix SequenceInfo.position
This commit is contained in:
@@ -424,8 +424,7 @@ impl FromVecExpression<SequenceInfo> for SequenceInfo {
|
|||||||
operand,
|
operand,
|
||||||
} => match (op, operand.as_ref()) {
|
} => match (op, operand.as_ref()) {
|
||||||
(sql_parse::UnaryOperator::Minus, Expression::Integer(v)) => {
|
(sql_parse::UnaryOperator::Minus, Expression::Integer(v)) => {
|
||||||
let value: i64 = (v.0).try_into().unwrap();
|
v.0.try_into().unwrap()
|
||||||
-value
|
|
||||||
}
|
}
|
||||||
(_, _) => panic!("SequenceInfo.position = {:?}", &value[2]),
|
(_, _) => panic!("SequenceInfo.position = {:?}", &value[2]),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user