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: source/assertions/ut_assertion_clob.tpb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,17 @@ create or replace type body ut_assertion_clob as
18
18
l_escape_msg varchar2(100) := case when a_escape_char is not null then ' using escape '''||a_escape_char||'''' end;
19
19
begin
20
20
if a_escape_char is not null then
21
-
l_condition := self.actual like a_mask escape a_escape_char;
21
+
l_condition := treat(self.actual_data as ut_data_value_clob).value like a_mask escape a_escape_char;
22
22
else
23
-
l_condition := self.actual like a_mask;
23
+
l_condition := treat(self.actual_data as ut_data_value_clob).value like a_mask;
24
24
end if;
25
25
self.build_assert_result(l_condition, 'to be like', ut_utils.to_string(a_mask)||l_escape_msg);
26
26
end;
27
27
28
28
member procedure to_match(self in ut_assertion_clob, a_pattern in varchar2, a_modifier in varchar2 default null) is
29
29
l_modifiers_msg varchar2(100) := case when a_modifier is not null then ' using modifiers '''||a_modifier||'''' end;
30
30
begin
31
-
self.build_assert_result((regexp_like(self.actual, a_pattern, a_modifier)), 'to be matching', ut_utils.to_string(a_pattern)||l_modifiers_msg);
31
+
self.build_assert_result((regexp_like(treat(self.actual_data as ut_data_value_clob).value, a_pattern, a_modifier)), 'to be matching', ut_utils.to_string(a_pattern)||l_modifiers_msg);
0 commit comments