From 43572800ab084de10fbfd1d4d08024ef0bac6862 Mon Sep 17 00:00:00 2001 From: Steve Rogerson Date: Fri, 12 Oct 2018 18:12:17 +0100 Subject: [PATCH] Column names can include spaces and other non 'w' characters --- lib/DBIx/Class/ResultSource.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index c88361ffe..1e448001b 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -1531,7 +1531,7 @@ sub reverse_relationship_info { sub __strip_relcond { +{ map - { map { /^ (?:foreign|self) \. (\w+) $/x } ($_, $_[1]{$_}) } + { map { /^ (?:foreign|self) \. (.+) $/x } ($_, $_[1]{$_}) } keys %{$_[1]} } }