[open-ils-commits] r18357 - branches/rel_1_6/Open-ILS/src/sql/Pg (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Oct 16 02:04:13 EDT 2010
Author: gmc
Date: 2010-10-16 02:04:09 -0400 (Sat, 16 Oct 2010)
New Revision: 18357
Modified:
branches/rel_1_6/Open-ILS/src/sql/Pg/1.6.0.4-1.6.1.0-upgrade-db.sql
Log:
backporting r17243 all the way down to reduce errors on upgrade
Signed-off-by: Galen Charlton <gmc at esilibrary.coM.
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/1.6.0.4-1.6.1.0-upgrade-db.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/1.6.0.4-1.6.1.0-upgrade-db.sql 2010-10-15 17:32:40 UTC (rev 18356)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/1.6.0.4-1.6.1.0-upgrade-db.sql 2010-10-16 06:04:09 UTC (rev 18357)
@@ -773,7 +773,7 @@
r.quality,
r.tcn_source,
r.tcn_value,
- title.value AS title,
+ FIRST(title.value) AS title,
FIRST(author.value) AS author,
ARRAY_TO_STRING(ARRAY_ACCUM( DISTINCT publisher.value), ', ') AS publisher,
ARRAY_TO_STRING(ARRAY_ACCUM( DISTINCT SUBSTRING(pubdate.value FROM $$\d+$$) ), ', ') AS pubdate,
@@ -786,9 +786,8 @@
LEFT JOIN metabib.full_rec pubdate ON (r.id = pubdate.record AND pubdate.tag = '260' AND pubdate.subfield = 'c')
LEFT JOIN metabib.full_rec isbn ON (r.id = isbn.record AND isbn.tag IN ('024', '020') AND isbn.subfield IN ('a','z'))
LEFT JOIN metabib.full_rec issn ON (r.id = issn.record AND issn.tag = '022' AND issn.subfield = 'a')
- GROUP BY 1,2,3,4,5,6;
+ GROUP BY 1,2,3,4,5;
-
More information about the open-ils-commits
mailing list