LP#1303940: improve readability of test case
[working/Evergreen.git] / Open-ILS / src / sql / Pg / t / regress / lp1303940-browse-hates-null.pg
1 BEGIN;
2
3 SELECT plan(1);
4
5 SELECT lives_ok($DATA$
6 INSERT INTO biblio.record_entry (id, last_xact_id, marc)
7 VALUES (999999998, 'pgtap', '<record    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"    xmlns="http://www.loc.gov/MARC21/slim">
8   <leader>00531nam a2200157 a 4500</leader>
9   <controlfield tag="001">879841</controlfield>
10   <controlfield tag="003">MAnMC</controlfield>
11   <controlfield tag="005">20080729170300.0</controlfield>
12   <controlfield tag="008">      t19981999enka              0 eng  </controlfield>
13   <datafield tag="020" ind1=" " ind2=" "><subfield code="a">1859677126</subfield></datafield>
14   <datafield tag="040" ind1=" " ind2=" "><subfield code="d">UtOrBLW</subfield></datafield>
15   <!-- the subfield $a here normalizes to a null value when using the stock
16        indexing definitions
17   -->
18   <datafield tag="100" ind1="1" ind2=" "><subfield code="a">:</subfield></datafield>
19   <datafield tag="245" ind1="1" ind2="4"><subfield code="a">The Illustrated hints, tips &amp; household skills :</subfield><subfield code="b">the practical, step-by-step home reference manual /</subfield><subfield code="c">publisher, Joanna Lorenz.</subfield></datafield>
20   <datafield tag="250" ind1=" " ind2=" "><subfield code="a">updated c2000.</subfield></datafield>
21   <datafield tag="260" ind1=" " ind2=" "><subfield code="a">London :Lorenz Books :</subfield><subfield code="b">an imprint of Anness Publishing Ltd.,</subfield><subfield code="c">c1998,1999.</subfield></datafield>
22   <datafield tag="300" ind1=" " ind2=" "><subfield code="a">256 p. :</subfield><subfield code="b">col. ill. ;</subfield><subfield code="c">30 cm.</subfield></datafield>
23   <datafield tag="901" ind1=" " ind2=" "><subfield code="a">879841</subfield><subfield code="b">AUTOGEN</subfield><subfield code="c">879841</subfield><subfield code="t">biblio</subfield></datafield></record>');
24 $DATA$,
25 'We should not get an error for NULL entry.');
26
27 ROLLBACK;