projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Use weak refs for schema object attributes
[dbsrgits/SQL-Translator.git]
/
lib
/
SQL
/
Translator
/
Schema
/
View.pm
diff --git
a/lib/SQL/Translator/Schema/View.pm
b/lib/SQL/Translator/Schema/View.pm
index
bee761e
..
b33c160
100644
(file)
--- a/
lib/SQL/Translator/Schema/View.pm
+++ b/
lib/SQL/Translator/Schema/View.pm
@@
-202,7
+202,7
@@
Get or set the view's schema object.
=cut
-has schema => ( is => 'rw', isa => schema_obj('Schema') );
+has schema => ( is => 'rw', isa => schema_obj('Schema'), weak_ref => 1 );
around schema => \&ex2err;