SQL typo upgrade_db_2_4
authorDan Scott <dscott@laurentian.ca>
Mon, 17 Jun 2013 13:15:03 +0000 (09:15 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 17 Jun 2013 13:15:03 +0000 (09:15 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/version-upgrade/conifer-2_4_step4c.sql

index 50521b5..b109f70 100644 (file)
@@ -1338,7 +1338,7 @@ BEGIN
         -- (for example, for titles of songs in music albums)
         IF (ind_data.search_field OR ind_data.browse_field) AND NOT b_skip_search THEN
             EXECUTE 'SELECT 1 FROM metabib.' || ind_data.field_class ||
-                '_field_entry WHERE field = $1 source = $2 AND value = $3'
+                '_field_entry WHERE field = $1 AND source = $2 AND value = $3'
                 INTO mbe_id USING ind_data.field, ind_data.source, ind_data.value;
                 -- RAISE NOTICE 'Search for an already matching row returned %', mbe_id;
             IF mbe_id IS NULL THEN