And yet another INDIRECT guard missed in both e5053694 and d99f2db7
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSource.pm
index eb56b01..c51c45d 100644 (file)
@@ -804,6 +804,8 @@ See also L</add_unique_constraint>.
 =cut
 
 sub add_unique_constraints {
+  DBIx::Class::_ENV_::ASSERT_NO_INTERNAL_INDIRECT_CALLS and fail_on_internal_call;
+
   my $self = shift;
   my @constraints = @_;