X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FTypes.pm;h=b8200138bf567612e968ba578773d232f2a8dcac;hb=b6fda1d15abec5e34f793a266b139d374bdfa4c3;hp=208139ea836e9f4e6928cf742e772d88d72516d5;hpb=4c3f67fa6fe92bdebe76194426ac141d66ee9b32;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Types.pm b/lib/SQL/Translator/Types.pm index 208139e..b820013 100644 --- a/lib/SQL/Translator/Types.pm +++ b/lib/SQL/Translator/Types.pm @@ -11,13 +11,13 @@ SQL::Translator::Types - Type checking functions use SQL::Translator::Types qw(schema_obj enum); has foo => ( is => 'rw', isa => schema_obj('Trigger') ); - has bar => ( is => 'rw', isa => enum([q(baz quux quuz)], { + has bar => ( is => 'rw', isa => enum([qw(baz quux quuz)], { msg => "Invalid value for bar: '%s'", icase => 1, }); =head1 DESCRIPTIONS -This module exports fuctions that return coderefs suitable for L +This module exports functions that return coderefs suitable for L C type checks. Errors are reported using L.