From a9c68067450afc39e7d312a8b541330ea23bee4c Mon Sep 17 00:00:00 2001 From: Finn Bear Date: Wed, 31 Aug 2022 06:00:43 -0700 Subject: [PATCH] Ensure integer ranges are parsed correctly (#81) --- lib/src/sql/ending.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/sql/ending.rs b/lib/src/sql/ending.rs index 4f937bc5..8ee62061 100644 --- a/lib/src/sql/ending.rs +++ b/lib/src/sql/ending.rs @@ -2,6 +2,7 @@ use crate::sql::comment::comment; use crate::sql::error::IResult; use crate::sql::operator::{assigner, operator}; use nom::branch::alt; +use nom::bytes::complete::tag; use nom::character::complete::char; use nom::character::complete::multispace1; use nom::combinator::eof; @@ -19,6 +20,7 @@ pub fn number(i: &str) -> IResult<&str, ()> { map(char('}'), |_| ()), map(char(';'), |_| ()), map(char(','), |_| ()), + map(tag(".."), |_| ()), map(eof, |_| ()), )))(i) }