Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSqlLexerArithOps (0.13 sec)

  1. internal/s3select/sql/parser_test.go

    	for i, tc := range cases {
    		err := p.ParseString(tc, &s)
    		if err != nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    
    		// repr.Println(s, repr.Indent("  "), repr.OmitEmpty(true))
    	}
    }
    
    func TestSqlLexerArithOps(t *testing.T) {
    	s := bytes.NewBuffer([]byte("year from select month hour distinct"))
    	lex, err := sqlLexer.Lex(s)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tokens, err := lexer.ConsumeAll(lex)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top