File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -380,14 +380,12 @@ impl<'a> Tokenizer<'a> {
380
380
'|' => {
381
381
chars. next ( ) ; // consume the '|'
382
382
match chars. peek ( ) {
383
- Some ( '|' ) => {
384
- self . consume_and_return ( chars, Token :: StringConcat )
385
- }
383
+ Some ( '|' ) => self . consume_and_return ( chars, Token :: StringConcat ) ,
386
384
// a regular '/' operator
387
385
_ => Err ( TokenizerError ( format ! (
388
386
"Tokenizer Error at Line: {}, Col: {}" ,
389
387
self . line, self . col
390
- ) ) )
388
+ ) ) ) ,
391
389
}
392
390
}
393
391
'=' => self . consume_and_return ( chars, Token :: Eq ) ,
Original file line number Diff line number Diff line change @@ -671,19 +671,15 @@ fn parse_string_agg() {
671
671
672
672
let select = verified_only_select ( sql) ;
673
673
assert_eq ! (
674
- SelectItem :: UnnamedExpr (
675
- Expr :: BinaryOp {
676
- left: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
677
- op: BinaryOperator :: StringConcat ,
678
- right: Box :: new( Expr :: Identifier ( Ident :: new( "b" ) ) ) ,
679
- }
680
- ) ,
674
+ SelectItem :: UnnamedExpr ( Expr :: BinaryOp {
675
+ left: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
676
+ op: BinaryOperator :: StringConcat ,
677
+ right: Box :: new( Expr :: Identifier ( Ident :: new( "b" ) ) ) ,
678
+ } ) ,
681
679
select. projection[ 0 ]
682
680
) ;
683
-
684
681
}
685
682
686
-
687
683
#[ test]
688
684
fn parse_between ( ) {
689
685
fn chk ( negated : bool ) {
You can’t perform that action at this time.
0 commit comments