projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
98cff1f
)
change Undef to an empty ArrayRef and remove auto_deref
Justin Hunter [Tue, 29 Sep 2009 23:50:43 +0000 (16:50 -0700)]
lib/SQL/Translator/Object/Constraint.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Object/Constraint.pm
b/lib/SQL/Translator/Object/Constraint.pm
index
78688c5
..
91e8cee
100644
(file)
--- a/
lib/SQL/Translator/Object/Constraint.pm
+++ b/
lib/SQL/Translator/Object/Constraint.pm
@@
-57,9
+57,12
@@
class SQL::Translator::Object::Constraint extends SQL::Translator::Object {
);
has 'reference_columns' => (
- isa => ArrayRef | Undef,
- is => 'rw',
- auto_deref => 1
+ isa => ArrayRef,
+ traits => ['Array'],
+ handles => {
+ reference_columns => 'elements',
+ },
+ default => sub { [] },
);
has 'match_type' => (