Skip to content

Commit 5c9edc6

Browse files
authored
Merge pull request #57 from MiguelSilvaR/double_quotes_fix
Support for lower case names
2 parents b57bf0c + 0df5a5d commit 5c9edc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MigrationTools/IndexParser/ora_idx_parser.body.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ create or replace package body ora_idx_parser as
273273
stmt clob;
274274
begin
275275
stmt := 'select json_dataguide(' || json_data_column || ', dbms_json.format_hierarchical)' ||
276-
' from ' || collection_name;
276+
' from "' || collection_name || '"';
277277
execute immediate stmt
278278
into dataguide_clob;
279279
dataguide_obj := json_object_t.parse(dataguide_clob);
@@ -444,7 +444,7 @@ create or replace package body ora_idx_parser as
444444
tabs || 'refresh fast on statement with primary key' || chr(10) ||
445445
tabs || 'as select col.id, jt.*' || chr(10);
446446
tabs := tabs || chr(9);
447-
result_output := result_output || tabs || 'from ' || collection_name || ' col,' || chr(10);
447+
result_output := result_output || tabs || 'from "' || collection_name || '" col,' || chr(10);
448448
tabs := tabs || chr(9);
449449
result_output := result_output || tabs || 'json_table(col.' || json_data_column || ', ''$'' error on error null on empty columns(';
450450
result_output := result_output || ora_idx_parser.generate_matview_paths(dg, '$', mat_paths_idx, '$', tabs || chr(9), error_msg, col_count, col_map_mv);
@@ -590,7 +590,7 @@ create or replace package body ora_idx_parser as
590590
end if;
591591

592592
out_stmt := out_stmt || 'index "$ora:' || collection_name || '.' ||idx_name
593-
|| '" on ' || collection_name || '(';
593+
|| '" on "' || collection_name || '" (';
594594

595595
v_keys := j_keys.get_keys;
596596
for k in v_keys.first..v_keys.last

0 commit comments

Comments
 (0)