Updates to MX::Declare required changes
[dbsrgits/SQL-Abstract-2.0-ish.git] / lib / SQL / Abstract / Types / Compat.pm
index 36dd455..9b833da 100644 (file)
@@ -1,6 +1,6 @@
 use MooseX::Declare;
 
-class SQL::Abstract::Types::Compat {
+class SQL::Abstract::Types::Compat is dirty {
   use Moose::Util::TypeConstraints;
   use MooseX::Types::Moose qw/ArrayRef Str Int Ref HashRef ScalarRef/;
 
@@ -10,5 +10,7 @@ class SQL::Abstract::Types::Compat {
 
   enum LogicEnum, qw(OR AND);
 
+  coerce LogicEnum, from Str, via { uc $_ };
+
   subtype WhereType, as Str|ArrayRef|HashRef|ScalarRef;
 }