You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the example parse shell script from the README produces an exception
git clone https://github.com/tshprecher/antlr_psql.git
cd antlr_psql
mvn compile
./scripts/parse "selectttt 1" stmt
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.antlr.v4.Tool.handleArgs(Tool.java:207)
at org.antlr.v4.Tool.<init>(Tool.java:195)
at org.antlr.v4.Tool.main(Tool.java:164)
[TOKENS]
IDENTIFIER 'selectttt'
INTEGER_LITERAL '1'
EOF '<EOF>'
[PARSE-TREE]
(stmt
(abort_stmt
(identifier selectttt)))
java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)
also get the same exception for a syntactically correct SQL statement.
./scripts/parse "select 1" stmt
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.antlr.v4.Tool.handleArgs(Tool.java:207)
at org.antlr.v4.Tool.<init>(Tool.java:195)
at org.antlr.v4.Tool.main(Tool.java:164)
[TOKENS]
SELECT 'select'
INTEGER_LITERAL '1'
EOF '<EOF>'
[PARSE-TREE]
(stmt
(select_stmt select
(selector_clause
(column_list
(expr 1)))))
The text was updated successfully, but these errors were encountered:
Running the example parse shell script from the README produces an exception
The text was updated successfully, but these errors were encountered: