diff --git a/crates/gitql-parser/src/parser.rs b/crates/gitql-parser/src/parser.rs index 7ab2fec6..6973d942 100644 --- a/crates/gitql-parser/src/parser.rs +++ b/crates/gitql-parser/src/parser.rs @@ -2480,8 +2480,6 @@ fn parse_symbol_expression( context.projection_locations.push(location); } - *position += 1; - if context.has_select_statement { // Replace name by alias if it used after select statement // This workaround will help to execute query like @@ -2502,6 +2500,9 @@ fn parse_symbol_expression( } } + // Consume Symbol + *position += 1; + Ok(Box::new(SymbolExpression { value })) }