201 Commits

Author SHA1 Message Date
Andreas Dangel
5e9402bfe1 Merge branch 'master' into pmd/7.0.x 2022-04-21 18:42:08 +02:00
李家奥
2667b421c1 add junit test cases 2022-04-20 14:37:11 +08:00
李家奥
5958b928dc [plsql] Fix parsing exception 2022-04-19 11:03:29 +08:00
Andreas Dangel
765cf3c92a Merge branch 'master' into pmd/7.0.x 2022-02-19 10:25:28 +01:00
Clément Fournier
7553a69435 Fix #3746 - Parsing exception "Less than or equal to/Greater than or equal to" operators in DML statements 2022-02-13 13:15:49 +01:00
Andreas Dangel
1d3f8eec02 Merge branch 'master' into pmd/7.0.x 2021-09-25 13:58:22 +02:00
Andreas Dangel
6458f95c4d [plsql] Parsing exception SELECT...INTO on Associative Arrays Types
Fixes #3515
2021-09-23 19:57:56 +02:00
Andreas Dangel
cacfeda085 Merge branch 'origin/master' into pr-3498 2021-09-23 13:25:40 +02:00
Andreas Dangel
ef3b1a8fa1 [plsql] Parsing exception OPEN ref_cursor_name FOR statement
Fixes #3487
2021-09-10 15:01:15 +02:00
Clément Fournier
936289af6b Merge branch 'master' into 7.0.x 2021-03-26 16:37:11 +01:00
Andreas Dangel
efbf023648 [plsql] Rework SQLCommand keywords vs. identifiers 2021-03-25 19:49:03 +01:00
Andreas Dangel
a5478c7358 [plsql] Document PMD Exclusions 2021-03-25 16:44:54 +01:00
Andreas Dangel
90675d9df0 [plsql] Move ParsingExclusion to internal package 2021-03-25 16:26:38 +01:00
Henning von Bargen
2eb2ce863f Reacted to comments in the PR:Some refactoring 2021-03-22 16:40:41 +01:00
hvbargen
3040c3461e Support for detecting excluded ranges in the top-level Input node with rules. 2021-03-10 11:36:03 +01:00
Henning von Bargen
64dfebf618 Test cases and bug fixes for lexical parameters and exclusion 2021-03-05 17:24:49 +01:00
hvbargen
46e368a3e0 Allow excluding lines from the parser using comments -- PMD-EXCLUDE-BEGIN and -- PMD-EXCLUDE-END. This is to workaround bugs in the PL/SQL parser - some valid statements cannot be parsed. by wrapping them inside PMD-EXCLUDE-BEGIN/END the parser just ignores them and continues parsing with the next line. 2021-02-26 19:11:27 +01:00
hvbargen
475f750216 Support for common SQL*Plus command abbreviations, support for special characters in HOST, REMARK, REM commands. 2021-02-25 16:30:56 +01:00
hvbargen
387dee88f1 No longer accept arbitrary lines as SQL*Plus commands. 2021-02-25 14:43:09 +01:00
hvbargen
c4fe303393 Replaced StringBuffer with StringBuilder again 2021-02-24 10:32:19 +01:00
hvbargen
017e40ba67 Accept double ampersand as well 2021-02-24 10:28:24 +01:00
hvbargen
fd973e7db5 Basic support for ampersand and backslash characters. At least the parser now accepts these characters and can parse a lot more typical scripts. 2021-02-24 09:48:51 +01:00
Andreas Dangel
28a644cd8e Merge branch 'master' into pmd/7.0.x 2021-02-19 09:26:59 +01:00
Henning von Bargen
ac1b5ed159 Issue 3106: Use StringExpression, test case renamed, moved plsql to resource folder. 2021-02-12 09:48:27 +01:00
Henning von Bargen
64d5ccad78 Fix for issue #3106 ParseException for EXECUTE IMMEDIATE str1||str2; 2021-02-10 17:54:10 +01:00
Clément Fournier
7384fd6fb2 Merge branch 'master' into 7.0.x 2020-08-28 14:58:10 +02:00
XenoAmess
244a39db0f fix typos. 2020-08-27 11:47:11 +08:00
Clément Fournier
fed55b0725 Merge branch 'master' into 7.0.x 2020-05-01 16:13:52 +02:00
Andreas Dangel
ad8662ccc4 [plsql] Add more tests 2020-04-30 18:52:21 +02:00
Andreas Dangel
ef9d5fd89d [plsql] Small improvements, see #2449 2020-04-30 18:24:59 +02:00
zgrzyt93
ffd573e1b5 Merge branch 'master' into additional_info 2020-04-27 15:05:22 +02:00
Grzegorz Sudolski
15b0bda348 [plsql] added some additional info in userData 2020-04-27 11:24:03 +02:00
Andreas Dangel
db6d57cd1d [plsql] grammar: set TRACK_TOKENS=false 2020-03-20 10:53:03 +01:00
Andreas Dangel
2f93795609 [plsql] remove BOM token, skip BOM in parser 2020-03-20 10:49:13 +01:00
Andreas Dangel
f6d27c6c61 [plsql] Adapt PLSQL to new javacc wrapper 2020-03-19 20:33:17 +01:00
Clément Fournier
903383d7cf Merge branch 'master' into 7.0.x 2020-03-17 15:14:46 +01:00
Piotr Szymanski
ee9f82166a fixed grammar 2020-03-13 13:50:24 +01:00
Piotr Szymanski
a355f06b90 xmlforest with optional AS 2020-03-13 12:19:25 +01:00
Andreas Dangel
16cb7767b7 Merge branch 'master' into pmd/7.0.x 2020-03-12 14:03:20 +01:00
Piotr Szymanski
7d9322734e fixed parsing front slash 2020-03-06 12:29:49 +01:00
Andreas Dangel
38ce869b12 Merge branch 'pr-2332'
[plsql] Fixed Execute Immediate statement parsing
2020-03-06 10:24:26 +01:00
Andreas Dangel
7bf8493307 Merge branch 'pr-2331'
[plsql] Fix in Comment statement
2020-03-06 10:19:48 +01:00
Andreas Dangel
a682d36745 [plsql] Remove CursorBody and keep CursorSpecification 2020-03-06 10:18:27 +01:00
Andreas Dangel
d8afacd6a3 Formatting 2020-03-06 09:47:17 +01:00
Piotr Szymanski
8ae59231a2 fixed and turned on Execute Immediate 2020-03-05 17:47:45 +01:00
Piotr Szymanski
72587706b3 small fix in Comment statement, removed not needed cursorSpecification, code formatting 2020-03-05 16:50:46 +01:00
Andreas Dangel
d759f8126b Merge branch 'pr-2327'
[plsql] Parsing of WHERE CURRENT OF added
2020-03-05 12:22:05 +01:00
Andreas Dangel
2c68e13598 [plsql] Refactor XMLROOT and XMLFOREST
* Undo changes for XMLFOREST - <AS> is not optional alone
* Remove token for keyword "VALUE"
2020-03-05 12:04:07 +01:00
Andreas Dangel
3329374214 [plsql] Refactor ExtractExpression
* Separate helper productions for datetime/xml
* Use StringLiteral for xpath and namespace
2020-03-05 12:02:56 +01:00
Piotr Szymanski
97043a75c5 parsing where_current_of added 2020-03-04 17:22:15 +01:00