JSQLParser / JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern

Home Page:https://github.com/JSQLParser/JSqlParser/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] JSQLParser Version : 4.6 : net.sf.jsqlparser.parser.TokenMgrException when parsing columns containing the ° character

gabrielefantini opened this issue · comments

Failing SQL Feature:

Token exception when parsing columns containing the ° character.

SQL Example:

```sql
select column1 as column_1°_of_many
from table_name;
```

(This syntax is supported in Amazon Redshift.)

Link

http://jsqlformatter.manticore-projects.com/jsqlformatter/demo.html?args=-c%20M4UwNiDGAuAEkHswFcC2A7AjLAhseSa6A+pgA3EIBmxqO6AngFCyuxUBOCqs0OARhGLocqEAG4gA

Greetings!

Possible, but I consider it way too obscure and bad practice, sorry. I won't fix it but I would accept non-invasive patches, that can fix it (without disturbing anything else).