LucaCappelletti94 opened a new pull request, #2964:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2964

   In PostgreSQL an operator name can be any sequence of the characters `+ - * 
/ < > = ~ ! @ # % ^ & | ` ?`, so `===` and `+~+` are valid names, and currently 
these all fail parsing.
   
   The tokenizer now applies[postgres lexical 
rules](https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-OPERATORS)
 to find the end of the name first, and then reads only those characters. A 
name it does not recognise becomes a custom operator. Dialects without custom 
operators are not affected.
   
   This also fixes rows C5, C22 and C27 of #2840.


-- 
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]

  • [PR] PostgreSQL: Read multi-char... LucaCappelletti94 (via GitHub) via github

Reply via email to