62d6dbea6fe14f0c3553587a038066686371c7c9
[Evergreen.git] / Open-ILS / src / sql / Pg / t / regress / lp1414112_allow_spaces_as_ff_attr_values.pg
1 BEGIN;
2
3 SELECT plan(2);
4
5 INSERT INTO biblio.record_entry (marc, last_xact_id)
6 VALUES (
7     $$<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"><leader>00620cam a2200205Ka 4500</leader><controlfield tag="001">1</controlfield><controlfield tag="003">CONS</controlfield><controlfield tag="005">20150113170906.0</controlfield><controlfield tag="008">070101s                            eng d</controlfield><datafield tag="245" ind1=" " ind2=" "><subfield code="a">Harry potter</subfield></datafield><datafield tag="901" ind1=" " ind2=" "><subfield code="a">1</subfield><subfield code="b"></subfield><subfield code="c">1</subfield><subfield code="t">biblio</subfield></datafield></record>$$,
8     'LP#1414112'
9 );
10
11 SELECT ok(attrs ? 'audience', 'audience attribute exists')
12 FROM metabib.record_attr WHERE id = CURRVAL('biblio.record_entry_id_seq');
13
14 SELECT ok(NOT attrs ? 'date1' , 'date1 attribute does not exist')
15 FROM metabib.record_attr WHERE id = CURRVAL('biblio.record_entry_id_seq');
16
17 ROLLBACK;