From cf69aefb28f8ad1238adb76d68c37d5594be54be Mon Sep 17 00:00:00 2001 From: Mark Zealey Date: Fri, 29 Jul 2016 12:13:27 +0300 Subject: [PATCH] Less stringent column name checking in __strip_relcond If (like us) you are using some strange syntax for column names the \w+ regex breaks returning () which leads to an incorrect hash. --- 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 9470546ac..5fe08b435 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -1875,7 +1875,7 @@ sub reverse_relationship_info { sub __strip_relcond { +{ map - { map { /^ (?:foreign|self) \. (\w+) $/x } ($_, $_[1]{$_}) } + { map { /^ (?:foreign|self) \. (.+) $/x } ($_, $_[1]{$_}) } keys %{$_[1]} } }