projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
cebb7cc
)
fix t/80unique.t
Rafael Kitover [Mon, 29 Jun 2009 21:13:48 +0000 (21:13 +0000)]
lib/DBIx/Class/ResultSource.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/ResultSource.pm
b/lib/DBIx/Class/ResultSource.pm
index
d6fd004
..
b3179f7
100644
(file)
--- a/
lib/DBIx/Class/ResultSource.pm
+++ b/
lib/DBIx/Class/ResultSource.pm
@@
-484,7
+484,10
@@
optional constraint name.
sub name_unique_constraint {
my ($self, $cols) = @_;
- return join '_', $self->name, @$cols;
+ my $name = $self->name;
+ $name = $$name if ref $name;
+
+ return join '_', $name, @$cols;
}
=head2 unique_constraints