Cloning vars in Template::Abstract breaks Plugin::DBIC
30 Aug
2012
30 Aug
'12
9:24 a.m.
Hi all, We're using Dancer 1.3100 and Plugin::DBIC however if we call a method on a DBIx::Class object that then makes a request from within the templates we get the following error: <DBIX::Class object->call()>: DBI _new_sth: DBI::db=HASH(0x7283538) has no ImplementorClass at /opt/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux-ld/DBD/mysql.pm line 230 This can be fixed with the attached patch, basically not using cloning on vars. Do vars need to be cloned? are they not per request anyway? Thanks Alex
4817
Age (days ago)
4817
Last active (days ago)
0 comments
1 participants
participants (1)
-
alex knowles