Subject: | 60647_ DBD-SQLite; Thank you - and a suggestion |
Date: | Tue, 02 Jun 2015 20:49:45 +0200 |
To: | bug-DBD-SQLite [...] rt.cpan.org |
From: | rch <rch [...] skynet.be> |
===============================================
Bruxelles
2015_06_02
Dear bug-DBD-SQLite
Thank you for Perl module DBD-SQLite.
I've used it several times a day for years,
with much success and narry a problem.
Little problem -
Today I tried DBD-SQLite on a Zotero sqlite database
and immediately started getting strange error message -
«Can't call method "execute" on an undefined value
at/usr/lib/perl5/DBD/SQLite.pm line 240»
Diagnosis -
$ fuser zotero.sqlite
showed that there was already another process using the file
and this provoked the error.
Even though I had closed zotero in Mozilla Firefox,
problem persisted till closed Mozilla Firefox
completely. Then the problem went away and DBD-SQLite
worked nicely.
Suggested solution -
Would it be possible to add a line to that error message
so that it reads
«Can't call method "execute" on an undefined value at
/usr/lib/perl5/DBD/SQLite.pm line NNN
This can happen if the SQLite database is already
opened by another application»
?
Yours sincerely / Vriendelijke groeten / Bien cordialement
Richard Hardwick
===============================================
Perl script that generates the error if sqlite database is in use by a.n.other -
my $db = shift;
my $dbh = DBI->connect( "dbi:SQLite:$db" ) || die "Cannot connect: $DBI::errstr";
# Error occurs here; next line is not invoked
my @lots_of_names = $dbh->tables;
Details my system -
Distribution name and version :- package DBD::SQLite;use 5.006;use strict;use DBI 1.57 ();
Perl version:- This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu-thread-multi-64int
Operating System vendor and version:- Linux Ubuntu 3.2.0-84-generic-pae #121-Ubuntu SMP Tue May 5 19:08:01 UTC 2015 i686 i686 i386 GNU/Linux
Details of me -
I'm a just botanist, not a computer person
===============================================
-------- End of Original Message --------
Envoyé depuis Thunderbird Mail pour Linux
Made by /home/rch/Public/Data/Sqlite/workarea/Make_email_V008.pl
using /home/rch/Public/Data/Sqlite/workarea/cfg_file_V002_.txt
Bruxelles
2015_06_02
Dear bug-DBD-SQLite
Thank you for Perl module DBD-SQLite.
I've used it several times a day for years,
with much success and narry a problem.
Little problem -
Today I tried DBD-SQLite on a Zotero sqlite database
and immediately started getting strange error message -
«Can't call method "execute" on an undefined value
at/usr/lib/perl5/DBD/SQLite.pm line 240»
Diagnosis -
$ fuser zotero.sqlite
showed that there was already another process using the file
and this provoked the error.
Even though I had closed zotero in Mozilla Firefox,
problem persisted till closed Mozilla Firefox
completely. Then the problem went away and DBD-SQLite
worked nicely.
Suggested solution -
Would it be possible to add a line to that error message
so that it reads
«Can't call method "execute" on an undefined value at
/usr/lib/perl5/DBD/SQLite.pm line NNN
This can happen if the SQLite database is already
opened by another application»
?
Yours sincerely / Vriendelijke groeten / Bien cordialement
Richard Hardwick
===============================================
Perl script that generates the error if sqlite database is in use by a.n.other -
my $db = shift;
my $dbh = DBI->connect( "dbi:SQLite:$db" ) || die "Cannot connect: $DBI::errstr";
# Error occurs here; next line is not invoked
my @lots_of_names = $dbh->tables;
Details my system -
Distribution name and version :- package DBD::SQLite;use 5.006;use strict;use DBI 1.57 ();
Perl version:- This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu-thread-multi-64int
Operating System vendor and version:- Linux Ubuntu 3.2.0-84-generic-pae #121-Ubuntu SMP Tue May 5 19:08:01 UTC 2015 i686 i686 i386 GNU/Linux
Details of me -
I'm a just botanist, not a computer person
===============================================
-------- End of Original Message --------
Envoyé depuis Thunderbird Mail pour Linux
Made by /home/rch/Public/Data/Sqlite/workarea/Make_email_V008.pl
using /home/rch/Public/Data/Sqlite/workarea/cfg_file_V002_.txt