[Dbix-class] missing "require DBI" in DBIx::Class::Storage::DBI::SQLite

Patrick Meidl pmeidl at ist.ac.at
Fri Apr 12 11:29:05 GMT 2013


hi,

I'm trying to install HTML::FormHandler::Model::DBIC. with DBIx::Class
0.08210, I get the following error:

Undefined subroutine &DBI::SQL_INTEGER called at
/usr/local/share/perl/5.14.2/DBIx/Class/Storage/DBI/SQLite.pm line 233.

on another machine where I had installed DBIx::Class 0.08203, everything
looks fine. the difference is in in the method
'bind_attribute_by_data_type()':

@@ -231,7 +191,7 @@ sub deployment_statements {
  
 sub bind_attribute_by_data_type {
   $_[1] =~ /^ (?: int(?:eger)? | (?:tiny|small|medium)int ) $/ix
-    ? DBI::SQL_INTEGER()
+    ? do { require DBI; DBI::SQL_INTEGER() }
     : undef
   ;
 }


so the problem is that DBI is no longer required, so the sql type
subroutines are not imported.

die question is: which distro should at this require?
(DBIx::Class or HTML::FormHandler::Model::DBIC)

cheers

    patrick

-- 
Patrick Meidl, Mag.
Senior Expert Software Engineering

IST - Institute of Science and Technology Austria
Am Campus 1
A-3400 Klosterneuburg, Austria

R 06.03.403 (Lab Building East)
T +43 2243 9000 1063
E pmeidl at ist.ac.at
W http://www.ist.ac.at/




More information about the DBIx-Class mailing list