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

Skip to content
Merged
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
Call stack differs based on version
  • Loading branch information
lwasylow committed Apr 8, 2019
commit 45d6e7a8c84be6f0fe1bab3ac86420a11cb8c6cc
8 changes: 4 additions & 4 deletions test/ut3_user/expectations/test_expectations_cursor.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,7 @@ Diff:%
begin
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%", line 2542 ut3.ut.expect(l_actual).to_equal(l_expected);
Check the query and data for errors.';

open l_actual for
Expand All @@ -2539,7 +2539,7 @@ Check the query and data for errors.';
open l_expected for
select c_price as usd_price_amt, c_user as update_id from dual;

ut3.ut.expect(l_actual).to_equal(l_expected);
ut3.ut.expect(l_actual).to_be_like(l_expected);
--Line that error relates to in expected messag

ut.fail('Expected exception on cursor fetch');
Expand All @@ -2556,15 +2556,15 @@ Check the query and data for errors.';

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);
at "UT3$USER#.TEST_EXPECTATIONS_CURSOR%", line 2567 ut3.ut.expect(l_actual).to_equal(l_expected);
Check the query and data for errors.';

open l_expected for
select 1/0 as test from dual;
open l_actual for
select 1 as test from dual;

ut3.ut.expect(l_actual).to_equal(l_expected);
ut3.ut.expect(l_actual).to_be_like(l_expected);

ut.fail('Expected exception on cursor fetch');
exception
Expand Down