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
**Describe the bug** The Snowflake MERGE statement does not require the ON statement to be wrapped in parantheses. **To Reproduce** Steps to reproduce the behavior: 1. Example SQL ``` MERGE...
**Describe the bug** I found this query in the MySQL 8.0 Reference Manual page 2678 **To Reproduce** 1.` INSERT INTO t1 SET a=1,b=2,c=3 AS new(m,n,p) ON DUPLICATE KEY UPDATE c...
Failed to parse MySQL statement and add common index statement with alter Version: com.github.jsqlparser jsqlparser 4.1 Parsed statement : ALTER TABLE table_name8 ADD index (column_1) This statement can be executed...
### Actual Behavior Parsing creation DDL like: CREATE TABLE `test3` ( `NAME` varchar(255) NOT NULL DEFAULT '', `ID` bigint(20) unsigned NOT NULL, PRIMARY KEY (`NAME`), unique index idx(`id`) ) ENGINE=InnoDB...
I think there is support for EXECUTE name syntax. Is it possible to add support for EXECUTE PROCEDURE name (...) and EXECUTE FUNCTION name (...) syntax?
Just stumpled over this: ```sql -- LISTAGG 3: fails to parse SELECT LISTAGG(ID, ', ') WITHIN GROUP (ORDER BY ID) OVER (ORDER BY ID); -- ARRAY_AGG 2: fails to deparse...
Can we support the following type of query : select FIRST_VALUE (bc.merch_l1_name [IGNORE NULLS]) over (partition by sku, channel_id order by feed_date desc) as merch_l1_name, FIRST_VALUE (bc.brand [IGNORE NULLS]) over...
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Example SQL INSERT INTO tableName (id,xxx0,xxx1,xxx2,is_deleted,create_time,update_time) VALUES (?, ?,...
**Describe the bug** I want to count the amount of subqueries (i.e., Delete, Select, ...) in a parsed query. However, the visitor seems to only visit the first element which...