bsb has asked for the wisdom of the Perl Monks concerning the following question:
Update: I'm starting to think that the changes during the upgrade causing this problem to manifest were at the Class::DBI/Ima::DBI level. On my laptop I get an error for the above but an older version is the application (using ANALYZE) is fine. I'll compare versions tomorrow.#!/usr/bin/perl use strict; use warnings; use DBI; unlink "a.db"; my $dbh = DBI->connect("dbi:SQLite:dbname=a.db") or die; print '$DBI::VERSION ',$DBI::VERSION, "\n"; print '$DBD::SQLite::VERSION ',$DBD::SQLite::VERSION, "\n"; $dbh->do("create table a as select 123 as b"); my $sth = $dbh->prepare('select "hello" from a'); $dbh->do("analyze"); print "got ", $dbh->selectrow_array($sth), "\n"; $sth->finish; #undef $sth; # to stop "closing dbh with active statement handles" # http://rt.cpan.org/Ticket/Display.html?id=22688 $dbh->disconnect; __END__ $ perl analyze_changed.pl $DBI::VERSION 1.53 $DBD::SQLite::VERSION 1.13 DBD::SQLite::db selectrow_array failed: database schema has changed(1) + at dbdimp.c line 421 at analyze_changed.pl line 16. got
$DBI::VERSION 1.51 $DBD::SQLite::VERSION 1.12 DBD::SQLite::db selectrow_array failed: database schema has changed(1) + at dbdimp.c line 416 at - line 16. got
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Upgraded SQLite: "database changed" error
by jbert (Priest) on Jun 05, 2007 at 07:47 UTC | |
by bsb (Priest) on Jun 05, 2007 at 11:05 UTC | |
by jbert (Priest) on Jun 05, 2007 at 11:35 UTC | |
Re: Upgraded SQLite: "database changed" error
by ww (Archbishop) on Jun 05, 2007 at 10:46 UTC | |
Re: Upgraded SQLite: "database changed" error
by bsb (Priest) on Jun 06, 2007 at 01:41 UTC | |
by jZed (Prior) on Jun 06, 2007 at 05:48 UTC |