]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/tests/datasets/sql/load_concerto.sql
Test data: avoid crazy transactions for expired patrons
[working/Evergreen.git] / Open-ILS / tests / datasets / sql / load_concerto.sql
1 BEGIN;
2
3 -- stop on error
4 \set ON_ERROR_STOP on
5
6 -- build functions, tables
7 \i env_create.sql
8
9 -- load concerto bibs
10 \i bibs_concerto.sql
11
12 -- insert all loaded bibs into the biblio.record_entry
13 INSERT INTO biblio.record_entry (marc, last_xact_id) 
14     SELECT marc, tag FROM marcxml_import ORDER BY id;
15
16 -- load concerto copies, etc.
17 \i assets_concerto.sql
18
19 -- clean up the env
20 \i env_destroy.sql
21
22 COMMIT;