wrong column name
authorJason Etheridge <jason@esilibrary.com>
Fri, 1 Apr 2011 14:32:25 +0000 (10:32 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 1 Apr 2011 14:32:25 +0000 (10:32 -0400)
Open-ILS/src/sql/Pg/990.schema.unapi.sql

index 3daaaa2..75ecad5 100644 (file)
@@ -285,7 +285,7 @@ CREATE OR REPLACE FUNCTION unapi.holdings_xml (bid BIGINT, ouid INT, org TEXT, d
                             SELECT  unapi.acp(p.target_copy,'xml','copy','{}'::TEXT[], $3, $4, $6, $7)
                               FROM  biblio.peer_bib_copy_map p
                                     JOIN asset.copy c ON (p.target_copy = c.id)
-                              WHERE NOT c.deleted AND peer_bib = $1
+                              WHERE NOT c.deleted AND peer_record = $1
                         )x)
                      )
                  ELSE NULL END