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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup whitespaces
  • Loading branch information
lwasylow committed Apr 5, 2019
commit 05efc5e1e71648830791c2c3d4e5e07e256e9b38
6 changes: 3 additions & 3 deletions source/expectations/data_values/ut_compound_data_helper.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,9 @@ create or replace package body ut_compound_data_helper is

function create_err_cursor_msg(a_error_stack varchar2) return varchar2 is
begin
return 'SQL exception thrown when fetching data from cursor: '||
ut_utils.remove_error_from_stack(sqlerrm,ut_utils.gc_xml_processing)||chr(10)||
ut_expectation_processor.who_called_expectation(a_error_stack)||
return 'SQL exception thrown when fetching data from cursor:'||
trim(ut_utils.remove_error_from_stack(sqlerrm,ut_utils.gc_xml_processing))||chr(10)||
trim(ut_expectation_processor.who_called_expectation(a_error_stack))||
'Check the query and data for errors.';
end;

Expand Down
6 changes: 3 additions & 3 deletions test/ut3_user/expectations/test_expectations_cursor.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -2528,9 +2528,9 @@ Diff:%
l_expected sys_refcursor;
l_exp_message varchar2(32000);
begin
l_exp_message :='ORA-20218: SQL exception thrown when fetching data from cursor:
l_exp_message :='ORA-20218: SQL exception thrown when fetching data from cursor:
ORA-01722: invalid number
at "UT3$USER#.TEST_EXPECTATIONS_CURSOR.XML_ERROR_ACTUAL", line 2542 ut3.ut.expect(l_actual).to_equal(l_expected);
at "UT3$USER#.TEST_EXPECTATIONS_CURSOR.XML_ERROR_ACTUAL", line 2542 ut3.ut.expect(l_actual).to_equal(l_expected);
Check the query and data for errors.';

open l_actual for
Expand All @@ -2554,7 +2554,7 @@ Check the query and data for errors.';
l_exp_message varchar2(32000);
begin

l_exp_message :='ORA-20218: SQL exception thrown when fetching data from cursor:
l_exp_message :='ORA-20218: SQL exception thrown when fetching data from cursor:
ORA-01476: divisor is equal to zero
at "UT3$USER#.TEST_EXPECTATIONS_CURSOR.XML_ERROR_EXPECTED", line 2567 ut3.ut.expect(l_actual).to_equal(l_expected);
Check the query and data for errors.';
Expand Down