On Thursday 09 June 2005 7:15 am, Puneet Kishor wrote: > I've been a reading a lot on the "database locked" problem, but still > need guidance trying to locate the source of my problem. > > environment: DBI/DBD::SQLite (latest versions) with SQLite3 (3.2.1) on > Mac OS X (10.3.9). > > I am trying to update a table via the web. The UPDATE in question is > the very first (and the only) DML statement. Yet, I get the "database > locked" error. > > The sequence of commands is > > my $sql = "UPDATE statement"; > my $sth = $dbh->prepare(qq{$sql}); > $sth->execute; > $dbh->commit; > > My question is: could I set some kind of "trace" that tells me what is > going on with SQLite? >
Try this.... my $sql = "UPDATE statement"; my $sth = $dbh->prepare(qq{$sql}) || die $dbh->errstr; $dbh->begin_work; $sth->execute || die $dbh->errstr; $dbh->commit; Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.7-default x86_64