LP#1053397: Correct operator thinko on CRA sorters
authorMike Rylander <mrylander@gmail.com>
Wed, 19 Feb 2014 18:06:32 +0000 (13:06 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 21 Feb 2014 20:38:55 +0000 (15:38 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/QQQQ.MVF_CRA-upgrade.sql

index e5c9673..ba9818b 100644 (file)
@@ -1613,7 +1613,7 @@ BEGIN
             END IF;
 
             IF attr_def.sorter THEN
-                IF attr_vector ~~ tmp_val THEN
+                IF attr_vector @@ tmp_val THEN
                     DELETE FROM metabib.record_sorter WHERE source = rid AND attr = attr_def.name;
                     INSERT INTO metabib.record_sorter (source, attr, value) VALUES (rid, attr_def.name, ccvm_row.code);
                 END IF;
index c04d8f4..4148fa4 100644 (file)
@@ -450,7 +450,7 @@ BEGIN
             END IF;
 
             IF attr_def.sorter THEN
-                IF attr_vector ~~ tmp_val THEN
+                IF attr_vector @@ tmp_val THEN
                     DELETE FROM metabib.record_sorter WHERE source = rid AND attr = attr_def.name;
                     INSERT INTO metabib.record_sorter (source, attr, value) VALUES (rid, attr_def.name, ccvm_row.code);
                 END IF;