You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Productionselect banner from v$version;
-- create tablecreatetableiap_tbl (id int, col1 varchar2(20char));
/-- normal insertinsert into iap_tbl (id, col1) values (1, 'test');
commit;
/select*from iap_tbl;
/-- insert with append hint
insert /*+ append */ into iap_tbl (id, col1) values (2, 'test2');
commit;
Python
# pip show sqlglot#Name: sqlglot#Version: 22.2.0fromsqlglotimportparse_one# error parsing hintsql_nok="insert /*+ append */ into iap_tbl (id, col1) values (2, 'test2')"# ok when + removed from comment, normal comment not hintsql_ok="insert /* append */ into iap_tbl (id, col1) values (2, 'test2')"parse_one(sql_ok)
parse_one(sql_nok)
The text was updated successfully, but these errors were encountered:
Hi @sunrutcon, I've already started looking at this and I expect to have it fixed by tonight, apologies for the late notice. Thanks for reporting this and feel free to report and/or contribute your fixes for any other issues you encounter.
Error in parsing Oracle insert append.
SQL
Python
The text was updated successfully, but these errors were encountered: