Renamed DBIC::Positional as DBIC::Ordered.
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / DB.pm
index c0bb686..aa5eeb3 100644 (file)
@@ -1,5 +1,8 @@
 package DBIx::Class::DB;
 
+use strict;
+use warnings;
+
 use base qw/DBIx::Class/;
 use DBIx::Class::Schema;
 use DBIx::Class::Storage::DBI;
@@ -8,8 +11,11 @@ use DBI;
 
 __PACKAGE__->load_components(qw/ResultSetProxy/);
 
-*dbi_commit = \&txn_commit;
-*dbi_rollback = \&txn_rollback;
+{
+    no warnings 'once';
+    *dbi_commit = \&txn_commit;
+    *dbi_rollback = \&txn_rollback;
+}
 
 sub storage { shift->schema_instance(@_)->storage; }
 
@@ -23,7 +29,7 @@ sub resultset_instance {
   return $source->resultset;
 }
 
-=head1 NAME 
+=head1 NAME
 
 DBIx::Class::DB - Non-recommended classdata schema component
 
@@ -61,7 +67,7 @@ Sets or gets the storage backend. Defaults to L<DBIx::Class::Storage::DBI>.
 
 ****DEPRECATED****
 
-Sets or gets the class to use for resolving a class. Defaults to 
+Sets or gets the class to use for resolving a class. Defaults to
 L<DBIx::Class::ClassResolver::Passthrough>, which returns whatever you give
 it. See resolve_class below.