Enable DIFF option in LIVE SELECT queries

This commit is contained in:
Tobie Morgan Hitchcock 2023-02-22 18:03:48 +00:00
parent 0589465095
commit ace60e4d1d

View file

@ -85,7 +85,7 @@ impl fmt::Display for LiveStatement {
pub fn live(i: &str) -> IResult<&str, LiveStatement> { pub fn live(i: &str) -> IResult<&str, LiveStatement> {
let (i, _) = tag_no_case("LIVE SELECT")(i)?; let (i, _) = tag_no_case("LIVE SELECT")(i)?;
let (i, _) = shouldbespace(i)?; let (i, _) = shouldbespace(i)?;
let (i, expr) = fields(i)?; let (i, expr) = alt((map(tag_no_case("DIFF"), |_| Fields::default()), fields))(i)?;
let (i, _) = shouldbespace(i)?; let (i, _) = shouldbespace(i)?;
let (i, _) = tag_no_case("FROM")(i)?; let (i, _) = tag_no_case("FROM")(i)?;
let (i, _) = shouldbespace(i)?; let (i, _) = shouldbespace(i)?;