Skip to content

Commit

Permalink
[PlSql] Support XMLTYPE as a native data type (#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros authored Aug 8, 2023
1 parent eba5c44 commit 2a1e039
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions sql/plsql/PlSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -6885,6 +6885,7 @@ native_datatype_element
| CLOB
| NCLOB
| MLSLABEL
| XMLTYPE
;

bind_variable
Expand Down
5 changes: 4 additions & 1 deletion sql/plsql/examples/alter_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,7 @@ ALTER TABLE employees
MODIFY LAST_UPDATE_DATE invisible;

ALTER TABLE employees
MODIFY LAST_UPDATE_DATE visible;
MODIFY LAST_UPDATE_DATE visible;

ALTER TABLE employees
ADD XMLTYPE;
6 changes: 6 additions & 0 deletions sql/plsql/examples/create_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,12 @@ CREATE TABLE print_media_demo
NESTED TABLE ad_textdocs_ntab STORE AS nt_p2
)
TABLESPACE tbs_03;

CREATE TABLE T (
id number(9,0) primary key,
data xmltype
);

create TABLE PROCESSED AS (
select * FROM T_ORDER_PROCESSED f)
-- WHERE
Expand Down

0 comments on commit 2a1e039

Please sign in to comment.