autoflush debugfh, plus Changes for this and the weakref thing
Brandon L. Black [Sat, 16 Jun 2007 18:49:33 +0000 (18:49 +0000)]
Changes
lib/DBIx/Class/Storage.pm
lib/DBIx/Class/Storage/DBI.pm

diff --git a/Changes b/Changes
index 162f2d2..f5f80ad 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for DBIx::Class
 
+        - Fixed DBIC_TRACE debug filehandles to set ->autoflush(1)
+        - Fixed circular dbh<->storage in HandleError with weakref
+
 0.07999_06 2007-06-13 04:45:00
         - tweaked Row.pm to make last_insert_id take multiple column names
         - Fixed DBIC::Storage::DBI::Cursor::DESTROY bug that was
index 3369069..735ac65 100644 (file)
@@ -7,6 +7,7 @@ use base qw/DBIx::Class/;
 
 use Scalar::Util qw/weaken/;
 use Carp::Clan qw/^DBIx::Class/;
+use IO::File;
 
 __PACKAGE__->mk_group_accessors('simple' => qw/debug debugobj schema/);
 
@@ -67,6 +68,7 @@ sub new {
     $fh = IO::File->new('>&STDERR');
   }
 
+  $fh->autoflush(1);
   $new->debugfh($fh);
   $new->debug(1) if $debug_env;
 
index d7b9cf9..20948f3 100644 (file)
@@ -9,7 +9,6 @@ use DBI;
 use SQL::Abstract::Limit;
 use DBIx::Class::Storage::DBI::Cursor;
 use DBIx::Class::Storage::Statistics;
-use IO::File;
 use Scalar::Util qw/blessed weaken/;
 
 __PACKAGE__->mk_group_accessors('simple' =>