Merge 'trunk' into 'DBIx-Class-current'
Matt S Trout [Fri, 3 Nov 2006 04:26:25 +0000 (04:26 +0000)]
r33016@cain (orig r2852):  matthewt | 2006-10-25 07:11:15 +0000
fix it properly, fix Changes
r33253@cain (orig r2853):  castaway | 2006-10-30 14:21:53 +0000
Fixed typos in HashRefInflator example

r33254@cain (orig r2854):  ash | 2006-10-30 14:49:27 +0000
Fixed type in hasrref iter - thanks abraxxa

r33255@cain (orig r2855):  ash | 2006-10-31 11:24:43 +0000
Deploy fix that will hopefully sort out problems with HTML::Widget::DBIxClass

r33256@cain (orig r2856):  ash | 2006-11-01 02:11:22 +0000
reverted previous deploy change(r8255) - sorry matt, i wont break it again

1  2 
Changes
lib/DBIx/Class/Manual/Cookbook.pod

diff --combined Changes
+++ b/Changes
@@@ -1,30 -1,16 +1,32 @@@
  Revision history for DBIx::Class
  
 +0.07999_01 2006-10-05 21:00:00
 +        - add connect_info option "disable_statement_caching"
 +        - create insert_bulk using execute_array, populate uses it
 +        - added DBIx::Class::Schema::load_namespaces, alternative to
 +          load_classes
 +        - added source_info method for source-level metadata (kinda like
 +          column_info)
 +        - Some of ::Storage::DBI's code/docs moved to ::Storage
 +        - DBIx::Class::Schema::txn_do code moved to ::Storage
 +        - Storage::DBI now uses exceptions instead of ->ping/->{Active} checks
 +        - Storage exceptions are thrown via the schema class's throw_exception
 +        - DBIx::Class::Schema::throw_exception's behavior can be modified via
 +          ->exception_action
 +        - columns_info_for is deprecated, and no longer runs automatically.
 +          You can make it work like before via
 +          __PACKAGE__->column_info_from_storage(1) for now
 +
  0.07003 2006-XX-XX XX:XX:XX
          - Fix UTF8Columns to work under Perl <= 5.8.0
          - Fix up new_result in ResultSet to avoid alias-related bugs
+         - Made new/update/find handle 'single' rel accessor correctly
+         - Fix NoBindVars to be safer and handle non-true bind values
  
  0.07002 2006-09-14 21:17:32
          - fix quote tests for recent versions of SQLite
          - added reference implementation of Manual::Example
          - backported column_info_from_storage accessor from -current, but
 -          defaults true instead of false in 0.07xxx
          - fixed inflate_datetime.t tests/stringify under older Test::More
          - minor fixes for many-to-many relationship helpers
          - cleared up Relationship docs, and fixed some typos
@@@ -487,7 -487,7 +487,7 @@@ To order C<< $book->pages >> by descend
  =head2 Transactions
  
  As of version 0.04001, there is improved transaction support in
 -L<DBIx::Class::Storage::DBI> and L<DBIx::Class::Schema>.  Here is an
 +L<DBIx::Class::Storage> and L<DBIx::Class::Schema>.  Here is an
  example of the recommended way to use it:
  
    my $genus = $schema->resultset('Genus')->find(12);
@@@ -905,7 -905,7 +905,7 @@@ method
  
  =head2 Profiling
  
 -When you enable L<DBIx::Class::Storage::DBI>'s debugging it prints the SQL
 +When you enable L<DBIx::Class::Storage>'s debugging it prints the SQL
  executed as well as notifications of query completion and transaction
  begin/commit.  If you'd like to profile the SQL you can subclass the
  L<DBIx::Class::Storage::Statistics> class and write your own profiling
@@@ -1114,7 -1114,7 +1114,7 @@@ C<inflate_result>
       my ($me, $rest) = @_;
  
       return { %$me, 
-         map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest } 
+         map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest
       };
    }
  
    $rs->result_class('My::HashRefInflator');
  
    my $datahashref = $rs->next;
-   foreach my $col (keys $datahashref) {
-      if(!ref($datahashref->{$col}) {
+   foreach my $col (keys %$datahashref) {
+      if(!ref($datahashref->{$col})) {
          # It's a plain value
       }
       elsif(ref($datahashref->{$col} eq 'HASH')) {