Skip to content

Commit

Permalink
Enhanced Keywords
Browse files Browse the repository at this point in the history
Add Keywords and document, which keywords are allowed for what purpose
  • Loading branch information
manticore-projects committed Jan 21, 2023
1 parent be8e7a8 commit b5321d6
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ from o
connect by nocycle obj=prior link
start with obj='a'

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 14, 2021 9:00:57 PM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 14, 2021 9:00:57 PM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:56
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ from (
select trim(valeur)
from liste

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:07 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:07 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:56
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ level2[any] = case when org_level[cv()] = 2 then ename [cv()] end,
level3[any] = case when org_level[cv()] = 3 then ename [cv()] end,
level4[any] = case when org_level[cv()] = 4 then ename [cv()] end )

--@FAILURE: Encountered unexpected token: "return" <S_IDENTIFIER> recorded first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "return" <S_IDENTIFIER> recorded first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ level3[any] = case when org_level[cv()] = 3 then ename [cv()] end,
level4[any] = case when org_level[cv()] = 4 then ename [cv()] end
)))

--@FAILURE: Encountered unexpected token: "return" <S_IDENTIFIER> recorded first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "return" <S_IDENTIFIER> recorded first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
---
select * from dual order by 1

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
---
select * from dual order by 1 asc

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
---
select * from dual order by m.year, m.title, f(a)

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:07 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:07 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
---
select * from dual order by a nulls first, b nulls last

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
---
select * from dual order siblings by a nulls first, b nulls last, c nulls last, d nulls last, e nulls last

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "siblings" "SIBLINGS" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
---
with a as (select * from dual order by 1) select * from a

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ from (select customer_id, product_code, quantity
pivot (sum(quantity) as sum_quantity for product_code in ('a' as a, 'b' as b, 'c' as c))
order by customer_id

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ from reports_to_101
order by reportlevel, eid


--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ from t1, rn
where rn <= cases
order by pname

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:08 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
with days as (select (select trunc(sysdate, 'MONTH') from dual) + rownum -1 as d from dual connect by rownum < 31)
select d from days where (trunc(d) - trunc(d,'IW') +1 ) not in (6,7) and d <= last_day(sysdate)

--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:07 AM
--@SUCCESSFULLY_PARSED_AND_DEPARSED first on Aug 3, 2021, 7:20:07 AM
--@FAILURE: Encountered unexpected token: "by" "BY" recorded first on 18 Oct 2021, 21:15:57

0 comments on commit b5321d6

Please sign in to comment.