Remove double has_column check in new=>store_column
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / _Util.pm
index ad438e7..e281b66 100644 (file)
@@ -59,8 +59,11 @@ our @EXPORT_OK = qw(
   sigwarn_silencer modver_gt_or_eq fail_on_internal_wantarray
   refcount hrefaddr is_exception
   is_plain_value is_literal_value
+  UNRESOLVABLE_CONDITION
 );
 
+use constant UNRESOLVABLE_CONDITION => \ '1 = 0';
+
 sub sigwarn_silencer ($) {
   my $pattern = shift;
 
@@ -177,7 +180,9 @@ sub is_plain_value ($) {
       # intersted in are much more limited than the fullblown thing, and
       # this is a relatively hot piece of code
       (
-        # either has stringification which DBI prefers out of the box
+        # FIXME - DBI needs fixing to stringify regardless of DBD
+        #
+        # either has stringification which DBI SHOULD prefer out of the box
         #first { *{$_ . '::(""'}{CODE} } @{ mro::get_linear_isa( ref $_[0] ) }
         overload::Method($_[0], '""')
           or