Skip Menu |

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 46233
Status: rejected
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: dhorne [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Whoops, my tests were wrong - please close