Changeset 153

Show
Ignore:
Timestamp:
02/09/09 18:23:34 (10 months ago)
Author:
swistow
Message:

Need RaiseError and AutoCommit on in order for tests to pass

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/use-existing-dbh/t/lib/db-common.pl

    r149 r153  
    5757        for (@$dbs) { 
    5858            my $dsn    = dsn_for($_);   
    59             my $dbh    = DBI->connect( $dsn, "root", "" ) or die $DBI::errstr; 
     59            my $dbh    = DBI->connect( $dsn, "root", "", { 
     60                RaiseError => 1, 
     61                PrintError => 0, 
     62                AutoCommit => 1, 
     63            } ) or die $DBI::errstr; 
    6064            my $driver =  Data::ObjectDriver::Driver::DBI->new( dbh => $dbh);  
    6165            push @tmp, { driver => $driver, prefix => $pfx };