From 15deeb2c48ada1036146f2845fd94db5214f6526 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 6 Dec 2022 11:45:06 +0100 Subject: [PATCH] Fix SequenceInfo.position --- src/types.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/types.rs b/src/types.rs index 0c03eb5..6c0b378 100644 --- a/src/types.rs +++ b/src/types.rs @@ -424,8 +424,7 @@ impl FromVecExpression for SequenceInfo { operand, } => match (op, operand.as_ref()) { (sql_parse::UnaryOperator::Minus, Expression::Integer(v)) => { - let value: i64 = (v.0).try_into().unwrap(); - -value + v.0.try_into().unwrap() } (_, _) => panic!("SequenceInfo.position = {:?}", &value[2]), },