diff --git a/database/demo/demo_script/02_demo_lineage.sql b/database/demo/demo_script/02_demo_lineage.sql index 450422f..48a2544 100644 --- a/database/demo/demo_script/02_demo_lineage.sql +++ b/database/demo/demo_script/02_demo_lineage.sql @@ -170,6 +170,7 @@ SELECT line, col, -- 12. where-lineage of all insert statements collected by PL/Scope (default behaviour) SELECT * FROM plscope_ins_lineage + WHERE owner = USER ORDER BY owner, object_type, object_name, line, col, to_object_name, to_column_name, from_owner, from_object_type, from_object_name, from_column_name; @@ -178,6 +179,7 @@ SELECT * EXEC lineage_util.set_recursive(0); SELECT * FROM plscope_ins_lineage + WHERE owner = USER ORDER BY owner, object_type, object_name, line, col, to_object_name, to_column_name, from_owner, from_object_type, from_object_name, from_column_name; @@ -186,7 +188,8 @@ SELECT * EXEC lineage_util.set_recursive(1); SELECT * FROM plscope_ins_lineage - WHERE from_object_type = 'TABLE' + WHERE owner = USER + AND from_object_type = 'TABLE' ORDER BY owner, object_type, object_name, line, col, to_object_name, to_column_name, from_owner, from_object_type, from_object_name, from_column_name;