Skip to content

Commit

Permalink
SQL: Fixes #53. Incorrect handling of undesrcores in host/aliases end…
Browse files Browse the repository at this point in the history
…point
  • Loading branch information
icot committed Sep 12, 2016
1 parent 57007c7 commit ed6a96a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/0.75qa-base_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ public.dod_instances.db_name = public.functional_aliases.db_name;

-- Host aliases View
CREATE OR REPLACE VIEW api.host_aliases AS
SELECT host, array_agg('dbod-' || db_name || '.cern.ch') aliases
SELECT host, array_agg('dbod-' || regexp_replace(db_name, '_', '-', 'g') || '.cern.ch') aliases
FROM fdw.dod_instances
GROUP BY host;


0 comments on commit ed6a96a

Please sign in to comment.