This queue is for tickets about the Class-DBI CPAN distribution.

Report information
The Basics
Id:
4723
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
gfalck [...] twcny.rr.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.94
Fixed in:
(no value)



Subject: set_sql doesn't pass Ima::DBI "cache" flag
Recommend one of the following changes so users can turn off caching of prepared statements. # We override set_sql() from Ima::DBI so it has a default database connection. sub set_sql { my ($class, $name, $sql, $db, $cache) = @_; $db = 'Main' unless defined $db; $class->SUPER::set_sql($name, $sql, $db, $cache); $class->_generate_search_sql($name); return 1; } or this one to catch any future parameters that might be added to Ima::DBI. # We override set_sql() from Ima::DBI so it has a default database connection. sub set_sql { my ($class, $name, $sql, $db, @params) = @_; $db = 'Main' unless defined $db; $class->SUPER::set_sql($name, $sql, $db, @params); $class->_generate_search_sql($name); return 1; }
This has been added for the new release. Thanks, Tony


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.