Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7f167c

Browse files
committed
Update to handle new line in xmltype that caused pk value being returned with new lines char in 11g
1 parent 77e4468 commit a7f167c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/expectations/data_values/ut_compound_data_helper.pkb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ create or replace package body ut_compound_data_helper is
160160
function get_pk_value (a_join_by_xpath varchar2,a_item_data xmltype) return clob is
161161
l_pk_value clob;
162162
begin
163-
select extract(a_item_data,a_join_by_xpath).getclobval() into l_pk_value from dual;
163+
select replace((extract(a_item_data,a_join_by_xpath).getclobval()),chr(10)) into l_pk_value from dual;
164164
return l_pk_value;
165165
exception when no_data_found then
166166
return 'null';

0 commit comments

Comments
 (0)