Port more of the back-compat tests
[dbsrgits/SQL-Abstract-2.0-ish.git] / lib / SQL / Abstract / Types / Compat.pm
index 36dd455..fff3859 100644 (file)
@@ -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;
 }