Skip to content

Commit

Permalink
Change remaining single underscores to dots.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Kilkelly committed Jun 14, 2015
1 parent cc3449a commit ff32c98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sql/bedquilt.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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_%';
Expand Down

0 comments on commit ff32c98

Please sign in to comment.