Error with Class::DBI / Ima::DBI and perl 5.6.1

[prev] [thread] [next] [Date index for 2005/03/18]

From: Dan Sully
Subject: Error with Class::DBI / Ima::DBI and perl 5.6.1
Date: 21:03 on 18 Mar 2005
I'm seeing a bizzare error (and failure to start) on a perl 5.6.1 system.

Using DBI 1.46 and DBD::SQLite 1.08

DBD::SQLite::db prepare_cached failed: unrecognized token: ":"(1) at dbdimp.c line 268 at /home/slimdan/6.0/CPAN/Ima/DBI.pm line 391.
DBD::SQLite::db prepare_cached failed: unrecognized token: ":"(1) at dbdimp.c line 268 at /home/slimdan/6.0/CPAN/Ima/DBI.pm line 391.

This works fine on other 5.6.x systems, and on 5.8 systems.

The relevant Ima/DBI code is:

my $sql = $class->transform_sql($statement => @_);

return $cache ? $dbh->prepare_cached($sql) : $dbh->prepare($sql);

sub transform_sql {
        my ($class, $sql, @args) = @_;
        return sprintf $sql, @args;
}

Any thoughts?

Thanks.

-D
        -- 
        <iNoah> all your base class are belong to us

Error with Class::DBI / Ima::DBI and perl 5.6.1
Dan Sully 21:03 on 18 Mar 2005

Generated at 11:29 on 21 Mar 2005 by mariachi v0.52