50 Commits

Author SHA1 Message Date
Clément Fournier
a0109aeef9 Merge branch 'pr-1523' 2019-01-07 22:23:42 +01:00
Clément Fournier
e079d0c2e9 Merge branch 'pr-1525' 2018-12-17 16:08:39 +01:00
Clément Fournier
e56d97aac3 Merge branch 'pr-1524' 2018-12-17 16:05:54 +01:00
Andreas Dangel
69878f3562 [plsql] Parse Exception with IS NOT NULL
Fixes #1511
2018-12-13 17:25:48 +01:00
Andreas Dangel
351d04568f [plsql] Parse Exception with OUTER/INNER Joins
Fixes #1509
2018-12-13 17:03:13 +01:00
Andreas Dangel
43a96d92f0 [plsql] Parse Exception when using '||' operator in where clause
Fixes #1507
2018-12-13 15:47:42 +01:00
Andreas Dangel
7a8ef70e95 [plsql] Parse Exception when using SELECT COUNT(*)
Fixes #1508
2018-12-12 09:44:35 +01:00
Andreas Dangel
1cf1dfc96b [plsql] ParseException for IF/CASE statement with >=, <=, !=
Fixes #1454
2018-12-01 21:50:07 +01:00
Andreas Dangel
6253370426 Restore images of names and aliases
Special handling of TableAlias in Joins
ON is a reserved word
2018-09-27 11:31:54 +02:00
Andreas Dangel
4a1a12db29 ORDER is a reserved word as well 2018-09-27 11:31:54 +02:00
Andreas Dangel
11adc28a7e Allow keywords as identifiers for various names
Increase lookaheads in Condition2
2018-09-27 11:31:54 +02:00
Andreas Dangel
71e74dba8d Allow keywords as table alias
Note: BY and GROUP are reserved words
2018-09-27 11:31:54 +02:00
Andreas Dangel
3454804b49 Fully parse select statement in CursorForLoop.
Note: ALL and DISTINCT are reserved words
2018-09-27 11:31:54 +02:00
Andreas Dangel
a29fc094f9 Support DeleteStatement 2018-09-26 10:28:10 +02:00
Juan Martín Sotuyo Dodero
a3a48e2cb9 Merge pull request #1360 from adangel/plsql-select-function
[plsql] Support Function Calls in Select
2018-09-25 16:53:41 -03:00
Andreas Dangel
616746c004 Support UpdateStatement 2018-09-13 11:03:27 +02:00
Andreas Dangel
5bbbaeac1e Support FunctionCall in SelectList 2018-09-12 20:06:02 +02:00
Andreas Dangel
c5fdf94b03 Support simple FunctionCall 2018-09-11 13:07:32 +02:00
Andreas Dangel
dea38d44c9 Own AST node for FloatingPointCondition 2018-09-11 11:49:40 +02:00
Andreas Dangel
38d97c72a9 Reuse IsNullCondition 2018-09-11 11:46:54 +02:00
Andreas Dangel
d47b130a89 Fix unit tests 2018-09-10 20:42:35 +02:00
Andreas Dangel
db767317e1 Support IsTypeOfCondition 2018-09-10 20:42:35 +02:00
Andreas Dangel
849e3ada8d Support Between Condition, add test case for In Condition 2018-09-10 20:42:35 +02:00
Andreas Dangel
3760f53ab1 Support NullCondition 2018-09-10 20:42:31 +02:00
Andreas Dangel
78c5ce4636 Support LikeCondition 2018-09-10 19:31:34 +02:00
Andreas Dangel
7f2a052d00 Merge branch 'origin/master' into plsql-sql-statements 2018-09-10 19:11:13 +02:00
Andreas Dangel
ec665de1a2 [plsql] Add support for GroupByClause
* Restructure FromClause to have one node with multiple table references
2018-08-16 16:14:57 +02:00
Andreas Dangel
319c6cd073 Update grammar comment 2018-08-10 15:22:40 +02:00
Andreas Dangel
414e4a13fb Add JoinClause tests, fix outer join with using,
add support for query partition clause
2018-08-09 17:44:49 +02:00
Andreas Dangel
e3dfda3cca Simplify grammar 2018-08-09 16:34:22 +02:00
Andreas Dangel
7192663c1a [plsql] Improvements on the AST for SELECT
* SubqueryOperation is now available
* FromClause is a node on its own
* OuterJoinType is available
2018-08-03 16:50:48 +02:00
Andreas Dangel
b9344ef6f6 [plsql] Add support for OrderBy and RowLimiting clauses for SELECT 2018-08-03 15:48:23 +02:00
Andreas Dangel
580c92c550 [plsql] Add initial support for SELECT INTO - still WIP 2018-07-27 15:54:45 +02:00
Andreas Dangel
ecb1ddb451 [plsql] SELECT INTO with parentheses
This fixes partially #1047
2018-07-20 15:26:11 +02:00
Andreas Dangel
0b264d5feb Fix encoding (from cp1252 -> utf-8) 2018-07-20 15:24:24 +02:00
Andreas Dangel
9c4486f2fb [plsql] Add basic support for CursorForLoop statement 2018-07-20 15:23:27 +02:00
Juan Martín Sotuyo Dodero
bb3426f584 Merge branch 'pr-1238' 2018-07-15 17:39:03 -03:00
Juan Martín Sotuyo Dodero
cc9d9f47bd Merge branch 'pr-1241' 2018-07-15 17:30:47 -03:00
Andreas Dangel
832687b042 Add the new tokens as unreserved keywords 2018-07-15 20:31:33 +02:00
Andreas Dangel
19a3d5446f [plsql] plsql.ast.ParseException for CREATE TABLE
Fixes #980
2018-07-15 19:10:22 +02:00
Andreas Dangel
251abe223e [plsql] plsql.ast.ParseException when parsing VIEW
Fixes #981
2018-07-15 18:30:32 +02:00
Andreas Dangel
413c98c2f6 [plsql] plsql.ast.ParseException when parsing EXECUTE IMMEDIATE
Fixes #1047
2018-07-15 14:35:20 +02:00
Andreas Dangel
d92688a07d Introduce end-of-line normalization
References pmd/build-tools#2
2017-02-02 20:52:08 +01:00
Andreas Dangel
7dd7dd3512 [plsql] Javadoc doclint fixes
References #1516 [build] doclint error during build
2017-01-05 22:37:18 +01:00
sergey
5cf9a4d665 [plsql] fixed multiline SELECT parse
fixed multiline SELECT parse. Parsing skips SELECT statements to the ';'
delimiter or end of line. If statement terminated by the end of line,
next line starting from the middle of SELECT statement will fail to
parse. For example,
SELECT 1
INTO V
FROM DUAL;
will fail.
2016-11-22 13:49:35 -03:00
sergey
90862cc993 Added correct parse of IS [NOT] NULL
fixed crash of parsing following code (from unittest):
IF V_BUF IS NULL THEN
null;
end if;
2016-11-22 13:49:16 -03:00
Andreas Dangel
4ab1d0cbee Fixes #1520 [plsql] Missing PL/SQL language constructs in parser: Is Of Type, Using 2016-11-04 16:10:07 +01:00
Andreas Dangel
495dcb5ea9 Fixes #1527 [plsql] PRAGMA AUTONOMOUS_TRANSACTION gives processing errors 2016-11-04 10:19:24 +01:00
Frits Jalvingh
4310b36344 Fix PMD issue 1531- endless loop followed by OOM while parsing (PL)SQL 2016-10-30 19:09:11 +01:00
Andreas Dangel
802af053cf Move plsql into own sub-module 2014-10-04 18:40:22 +02:00