Ticket #2 (closed defect: fixed)
Comparing two records is ugly
| Reported by: | fumanchu | Owned by: | fumanchu |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | assertions | Keywords: | |
| Cc: |
Description
Example:
v_base_trans := test._make_typical_transaction();
v_record := "inner".get_transaction_complete_info(v_base_trans.transaction_id);
FOR colname IN SELECT
'transaction_id', 'title', 'description', 'price',
'quantity'
LOOP
PERFORM 'PERFORM test.assert_equal(v_record.' || colname || ', v_base_trans.' || colname || ');';
END LOOP;
The "PERFORM PERFORM" syntax is a horrible thing to remember how to do.
Change History
Note: See
TracTickets for help on using
tickets.
