projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Use quote_sub for trivial coercions
[dbsrgits/SQL-Translator.git]
/
lib
/
SQL
/
Translator
/
Schema
/
Procedure.pm
diff --git
a/lib/SQL/Translator/Schema/Procedure.pm
b/lib/SQL/Translator/Schema/Procedure.pm
index
e557bac
..
1a291e3
100644
(file)
--- a/
lib/SQL/Translator/Schema/Procedure.pm
+++ b/
lib/SQL/Translator/Schema/Procedure.pm
@@
-118,7
+118,7
@@
Get or set the comments on a procedure.
has comments => (
is => 'rw',
- coerce => sub { ref($_[0]) eq 'ARRAY' ? $_[0] : [$_[0]] },
+ coerce => quote_sub(q{ ref($_[0]) eq 'ARRAY' ? $_[0] : [$_[0]] }),
default => quote_sub(q{ [] }),
);