projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Allow select AS specification for functions only via the -as hash-key (no pod yet)
[dbsrgits/DBIx-Class-Historic.git]
/
lib
/
DBIx
/
Class
/
CDBICompat
/
Copy.pm
diff --git
a/lib/DBIx/Class/CDBICompat/Copy.pm
b/lib/DBIx/Class/CDBICompat/Copy.pm
index
ed42d95
..
ffd5381
100644
(file)
--- a/
lib/DBIx/Class/CDBICompat/Copy.pm
+++ b/
lib/DBIx/Class/CDBICompat/Copy.pm
@@
-25,7
+25,7
@@
Emulates C<<Class::DBI->copy($new_id)>>.
sub copy {
my($self, $arg) = @_;
return $self->next::method($arg) if ref $arg;
-
+
my @primary_columns = $self->primary_columns;
croak("Need hash-ref to edit copied column values")
if @primary_columns > 1;