X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FSchema%2FProcedure.pm;h=97e55cb054768e7bd0fa61549c24bf01e2c2f0dd;hb=da93ce6850901652d43fa1033a1ea58fa82230b4;hp=a0efe469028126074645467270d02f2cb3e07e1e;hpb=0fb585899446745386bc9b9233bdde168798f83d;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Schema/Procedure.pm b/lib/SQL/Translator/Schema/Procedure.pm index a0efe46..97e55cb 100644 --- a/lib/SQL/Translator/Schema/Procedure.pm +++ b/lib/SQL/Translator/Schema/Procedure.pm @@ -31,10 +31,11 @@ use Moo; use SQL::Translator::Utils qw(ex2err); use SQL::Translator::Role::ListAttr; use SQL::Translator::Types qw(schema_obj); +use Sub::Quote qw(quote_sub); extends 'SQL::Translator::Schema::Object'; -our $VERSION = '1.59'; +our $VERSION = '1.60'; =head2 new @@ -69,7 +70,7 @@ Get or set the procedure's name. =cut -has name => ( is => 'rw', default => sub { '' } ); +has name => ( is => 'rw', default => quote_sub(q{ '' }) ); =head2 sql @@ -80,7 +81,7 @@ Get or set the procedure's SQL. =cut -has sql => ( is => 'rw', default => sub { '' } ); +has sql => ( is => 'rw', default => quote_sub(q{ '' }) ); =head2 order @@ -103,7 +104,7 @@ Get or set the owner of the procedure. =cut -has owner => ( is => 'rw', default => sub { '' } ); +has owner => ( is => 'rw', default => quote_sub(q{ '' }) ); =head2 comments @@ -117,8 +118,8 @@ Get or set the comments on a procedure. has comments => ( is => 'rw', - coerce => sub { ref($_[0]) eq 'ARRAY' ? $_[0] : [$_[0]] }, - default => sub { [] }, + coerce => quote_sub(q{ ref($_[0]) eq 'ARRAY' ? $_[0] : [$_[0]] }), + default => quote_sub(q{ [] }), ); around comments => sub {