From: Jason Stephenson Date: Mon, 7 Apr 2014 19:41:02 +0000 (-0400) Subject: LP 1303940: pg_tap regression test. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=16eec856033ee3f3b7f5b4c73068e52a575be3c2;p=evergreen%2Fpines.git LP 1303940: pg_tap regression test. Add a pg_tap test to insert a record that should trigger the problem fixed by LP 1303940. If the test fails, we have a regression. Signed-off-by: Jason Stephenson Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/t/regress/lp1303940-browse-hates-null.pg b/Open-ILS/src/sql/Pg/t/regress/lp1303940-browse-hates-null.pg new file mode 100644 index 0000000000..f76e868393 --- /dev/null +++ b/Open-ILS/src/sql/Pg/t/regress/lp1303940-browse-hates-null.pg @@ -0,0 +1,11 @@ +BEGIN; + +SELECT plan(1); + +SELECT lives_ok($DATA$ +INSERT INTO biblio.record_entry (id, last_xact_id, marc) +VALUES (999999998, 'pgtap', '00531nam a2200157 a 4500879841MAnMC20080729170300.0 t19981999enka 0 eng 1859677126UtOrBLW:The Illustrated hints, tips & household skills :the practical, step-by-step home reference manual /publisher, Joanna Lorenz.updated c2000.London :Lorenz Books :an imprint of Anness Publishing Ltd.,c1998,1999.256 p. :col. ill. ;30 cm.879841AUTOGEN879841biblio'); +$DATA$, +'We should not get an error for NULL entry.'); + +ROLLBACK;