[open-ils-commits] [GIT] Evergreen ILS branch master updated. 87fe87866c391e86c0df50e7c905f81da4a0a3d4

Evergreen Git git at git.evergreen-ils.org
Mon Jul 30 17:50:47 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  87fe87866c391e86c0df50e7c905f81da4a0a3d4 (commit)
      from  4acbcfc9e799eeb6a342a26cb6eac8932b57bf75 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 87fe87866c391e86c0df50e7c905f81da4a0a3d4
Author: Mike Rylander <mrylander at gmail.com>
Date:   Thu Jun 14 07:34:12 2012 -0400

    Use bash and the postgres built-in array_agg
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/examples/build-eg-replication.sh b/Open-ILS/examples/build-eg-replication.sh
index 83a1134..8c98ed4 100755
--- a/Open-ILS/examples/build-eg-replication.sh
+++ b/Open-ILS/examples/build-eg-replication.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Equinox Software, Inc.
 # Author: Mike Rylander <miker at esilibrary.com>
@@ -52,7 +52,7 @@ fi
 
 if [ "_$TABLES" == "_" ]; then
   TABLES=$(psql -tc "
-    select array_to_string(array_accum(table_schema || '.' || table_name),' ')
+    select array_to_string(array_agg(table_schema || '.' || table_name),' ')
       from information_schema.tables
       where table_schema in (
         'acq', 'action', 'action_trigger', 'actor', 'asset', 'asset_hist', 'auditor',
@@ -65,7 +65,7 @@ if [ "_$TABLES" == "_" ]; then
 fi
 
 if [ "_$SEQUENCES" == "_" ]; then
-  SEQUENCES=$(psql -tc "select array_to_string(array_accum(schemaname || '.' || relname),' ') from pg_statio_user_sequences;")
+  SEQUENCES=$(psql -tc "select array_to_string(array_agg(schemaname || '.' || relname),' ') from pg_statio_user_sequences;")
 fi
 
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/examples/build-eg-replication.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list