Changeset 97
- Timestamp:
- 05/04/06 00:07:50 (4 years ago)
- Location:
- trunk/lib/Data
- Files:
-
- 2 modified
-
ObjectDriver.pm (modified) (1 diff)
-
ObjectDriver/Driver/DBI.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Data/ObjectDriver.pm
r92 r97 54 54 username => 'username', 55 55 password => 'password', 56 ) 56 57 } 57 58 -
trunk/lib/Data/ObjectDriver/Driver/DBI.pm
r96 r97 10 10 use Data::ObjectDriver::Driver::DBD; 11 11 12 __PACKAGE__->mk_accessors(qw( dsn username password dbh get_dbh dbd ));12 __PACKAGE__->mk_accessors(qw( dsn username password connect_options dbh get_dbh dbd )); 13 13 14 14 sub init { … … 48 48 local $SIG{ALRM} = sub { die "alarm\n" }; 49 49 $dbh = DBI->connect($driver->dsn, $driver->username, $driver->password, 50 { RaiseError => 1, PrintError => 0, AutoCommit => 1 }) 50 { RaiseError => 1, PrintError => 0, AutoCommit => 1, 51 %{$driver->connect_options || {}} }) 51 52 or Carp::croak("Connection error: " . $DBI::errstr); 52 53 alarm 0;
