Added fix to avoid undef warnings in CDBICompat stringify
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / CDBICompat / Retrieve.pm
index b7fca68..6937fb3 100644 (file)
@@ -4,7 +4,10 @@ use strict;
 use warnings FATAL => 'all';
 
 sub retrieve          { shift->find(@_)            }
-sub retrieve_all      { shift->search_literal('1') }
+sub retrieve_all      { shift->search              }
 sub retrieve_from_sql { shift->search_literal(@_)  }
 
+sub count_all         { shift->count               }
+  # Contributed by Numa. No test for this though.
+
 1;