Subject: | Connect attribures are ignored |
According to the DBI docs, the connect method should accept a hashref of
attributes:
$dbh = DBI->connect($data_source, $username, $password, \%attr)
or die $DBI::errstr;
However, the attributes are ignored with DBD::SQLite:
my $dbh =
DBI->connect($dsn, {PrintError => 0, AutoCommit => 0, RaiseError => 1})
|| die DBI::errstr;
printf("AutoCommit: %s\n", $dbh->{AutoCommit});
printf("PrintError: %s\n", $dbh->{PrintError});
printf("RaiseError: %s\n", $dbh->{RaiseError});
which gives:
AutoCommit: 1
PrintError: 1
RaiseError:
I realise that I could set the attributes following the connect request,
but it would be great if the DBI API could be supported.
Thanks