protect against null fingerprints (???)
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Feb 2008 21:18:14 +0000 (21:18 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Feb 2008 21:18:14 +0000 (21:18 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8586 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/src/extras/import/quick_metarecord_map.sql

index a402c86..89a8364 100644 (file)
@@ -10,7 +10,8 @@ INSERT INTO metabib.metarecord (fingerprint,master_record)
          FROM  (SELECT DISTINCT ON (fingerprint)
                        fingerprint, id, quality
                  FROM  biblio.record_entry
-                 ORDER BY fingerprint, quality desc) AS x;
+                 ORDER BY fingerprint, quality desc) AS x
+         WHERE fingerprint IS NOT NULL;
 
 INSERT INTO metabib.metarecord_source_map (metarecord,source)
        SELECT  m.id, b.id