From ff32c98e401c1e902049aa0634927b965bf66629 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Sun, 14 Jun 2015 14:11:09 +0100 Subject: [PATCH] Change remaining single underscores to dots. --- sql/bedquilt.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sql/bedquilt.sql b/sql/bedquilt.sql index f1f6ef6..c24ab8d 100644 --- a/sql/bedquilt.sql +++ b/sql/bedquilt.sql @@ -599,7 +599,12 @@ CREATE OR REPLACE FUNCTION bq_list_constraints(i_coll text) RETURNS setof text AS $$ BEGIN return query select - replace(substring(constraint_name from 7), '__', ':' ) + replace( + replace(substring(constraint_name from 7), + '__', + ':'), + '_', + '.') from information_schema.constraint_column_usage where table_name = i_coll and constraint_name like 'bqcn_%';