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
Copy file name to clipboardExpand all lines: docs/userguide/advanced_data_comparison.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,15 +35,12 @@ Each item in the comma separated list can be:
35
35
- a column name of cursor to be compared
36
36
- an attribute name of object type to be compared
37
37
- an attribute name of object type within a table of objects to be compared
38
-
- an [XPath](http://zvon.org/xxl/XPathTutorial/Output/example1.html) expression representing column/attribute
39
38
- Include and exclude option will not support implicit colum names that starts with single quota, or in fact any other special characters e.g. <, >, &
40
39
41
40
Each element in `ut_varchar2_list` nested table can be an item or a comma separated list of items.
42
41
43
42
When specifying column/attribute names, keep in mind that the names are **case sensitive**.
44
43
45
-
**XPath expressions with comma are not supported.**
46
-
47
44
## Excluding elements from data comparison
48
45
49
46
Consider the following examples
@@ -286,30 +283,31 @@ Diff:
286
283
287
284
***Please note that .join_by option will take longer to process due to need of parsing via primary keys.***
288
285
289
-
## Defining item as XPath
290
-
When using XPath expression, keep in mind the following:
286
+
## Defining item lists in option
287
+
XPath expressions are deprecated. They are currently still supported but in future versions they can be removed completely. Please use a current standard of defining items filter.
288
+
289
+
When using item list expression, keep in mind the following:
291
290
292
-
- cursor columns are nested under `<ROW>` element
293
291
- object type attributes are nested under `<OBJECTY_TYPE>` element
294
292
- nested table and varray items type attributes are nested under `<ARRAY><OBJECTY_TYPE>` elements
295
293
296
-
Example of a valid XPath parameter to include columns: `RN`, `A_Column`, `SOME_COL` in data comparison.
294
+
Example of a valid parameter to include columns: `RN`, `A_Column`, `SOME_COL` in data comparison.
297
295
```sql
298
-
procedure include_col_as_xpath_eq is
296
+
procedure include_col_list_eq is
299
297
l_actual sys_refcursor;
300
298
l_expected sys_refcursor;
301
299
begin
302
300
open l_expected for select rownum as rn, 'a'as"A_Column", 'x' SOME_COL from dual a connect by level <4;
303
301
open l_actual for select rownum as rn, 'a'as"A_Column", 'x' SOME_COL, a.*from all_objects a where rownum <4;
0 commit comments