Repaired typo on schema and upgrade SQL
authorBill Erickson <berick@esilibrary.com>
Tue, 31 May 2011 16:16:16 +0000 (12:16 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 31 May 2011 16:18:54 +0000 (12:18 -0400)
ARRAY_ACUM is not a defined function.  Per Dan Scott, replaced with
ARRAY_AGG instead of the correctly spelled ARRAY_ACCUM, since we'll be
using that function in place of ARRAY_ACCUM going forward.

Thanks, Dan.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0526.schema.upgrade-dep-tracking.sql

index ebb1cf1..822623b 100644 (file)
@@ -876,8 +876,8 @@ Upgrade script % can not be applied:
   deprecated by %
   superseded by %',
             my_db_patch,
-            ARRAY_ACUM(evergreen.upgrade_list_applied_deprecates(my_db_patch)),
-            ARRAY_ACUM(evergreen.upgrade_list_applied_supersedes(my_db_patch)),
+            ARRAY_AGG(evergreen.upgrade_list_applied_deprecates(my_db_patch)),
+            ARRAY_AGG(evergreen.upgrade_list_applied_supersedes(my_db_patch)),
             evergreen.upgrade_list_applied_deprecated(my_db_patch),
             evergreen.upgrade_list_applied_superseded(my_db_patch);
     END IF;
index e707053..42de078 100644 (file)
@@ -86,8 +86,8 @@ Upgrade script % can not be applied:
   deprecated by %
   superseded by %',
             my_db_patch,
-            ARRAY_ACUM(evergreen.upgrade_list_applied_deprecates(my_db_patch)),
-            ARRAY_ACUM(evergreen.upgrade_list_applied_supersedes(my_db_patch)),
+            ARRAY_AGG(evergreen.upgrade_list_applied_deprecates(my_db_patch)),
+            ARRAY_AGG(evergreen.upgrade_list_applied_supersedes(my_db_patch)),
             evergreen.upgrade_list_applied_deprecated(my_db_patch),
             evergreen.upgrade_list_applied_superseded(my_db_patch);
     END IF;