putao520 opened a new issue, #2862:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/2862

   **Dialect**: PostgreSQL
   
   **Statement**
   
   ```sql
   CREATE OPERATOR === (PROCEDURE = int8eq, LEFTARG = bigint, RIGHTARG = 
bigint);
   ```
   
   **Current behavior**: The tokenizer splits a run starting with `=` into 
single-character tokens, so `===` never reaches the parser as one operator 
token. PG allows any operator made of the operator characters.
   
   **Expected AST**: A single multi-character operator token usable where PG 
accepts `any_operator`, e.g. in `CREATE OPERATOR` / `DROP OPERATOR`.
   
   **0.63.0 anchor**: `tokenizer.rs:1579-1586; mod.rs:7309-7320`
   
   **pg_regress coverage**: `create_operator / drop_operator (regression)`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to