JSqlParser
JSqlParser copied to clipboard
JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
JSqlParser doesn't support convert function used as converting a value to a specified character set
**Describe the bug** ParseException occurs when parse SQL **To Reproduce** Steps to reproduce the behavior: 1. Example SQL SELECT id,name,version,identity,type,`desc`,enable,content FROM tbl_template WHERE (name like ?) ORDER BY convert(name using...
**Describe the bug** When parsing the below SQL an exception with the message: "Not yet supprted" is thrown. This is totally valid MariaDB SQL Syntax that runs just fine when...
**Describe the bug** Can't properly parse the statement when 1. Backslash is the last character of a literal; 2. The literal is not the last value of a sequence. **To...
JSQLParser 4.1: ```sql -- Nested Comments failure select /*this is a /*nested!!!*/ comment*/ 1 from dual; ``` at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatements(CCJSqlParserUtil.java:206) at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatements(CCJSqlParserUtil.java:194) at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:28225) at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:28064) at net.sf.jsqlparser.parser.CCJSqlParser.Statements(CCJSqlParser.java:623) at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatements(CCJSqlParserUtil.java:204) This...
I want to implement impala/hive grammar, for example: > ****`insert overwrite a(b,c) partitions(tx_date=20190626) select b,c from b`**** I would like to ask which class I should pay attention to
From the test suite: ```java @Test public void testStatementsErrorRecovery3() throws JSQLParserException, ParseException { String sqls = "select * from mytable; select * from;select * from mytable2"; CCJSqlParser parser = new...
INSERT overwrite table t.b partition(p1=1,p2=2,mth_beg_dt) as select * from t.b1 distribute by column1
**Describe the bug** parser error. **To Reproduce** Steps to reproduce the behavior: 1. Example SQL : select a from b group by c desc; 2. Parsing this SQL using JSqlParser...
**Describe the bug** Lexical error for Oracle update statement when where clause has backslash in string literal. **To Reproduce** Steps to reproduce the behavior: 1. update PARAM_TBL set PARA_DESC =...
**Describe the bug** NotExpression is not parsed correctly. **To Reproduce** Steps to reproduce the behavior: 1. `CCJSqlParserUtil.parseCondExpression("not not 1 = 1")` generates following objects: `NotExpression ( EqualsTo ( NotExpression (...