1 -- Format the output for nice TAP.
6 -- Revert all changes on failure.
7 \set ON_ERROR_ROLLBACK 1
8 \set ON_ERROR_STOP true
11 -- Load the TAP functions.
17 -- Now make sure that the a query against it doesn't break
18 PREPARE thrower AS select mmr_mra::varchar from unapi.mmr_mra
19 (240,'','',null::text[],'CONS',0,null::HSTORE,null::HSTORE,true,1);
21 SELECT performs_ok( 'thrower',250,'Generic check for unapi.mmr_mra breakage' );
23 -- Make sure that the function returns the new XML property source_list
26 select mmr_mra::varchar ~ 'source_list="24[234],24[234],24[234]"'
28 (240,'','',null::text[],'CONS',0,null::HSTORE,null::HSTORE,true,1)
29 ), true, 'unapi.mmr_mra results have source_list="242,243,244sfaf"' );
32 -- Finish the tests and clean up.
33 SELECT * FROM finish();