Skip Menu |

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

Report information
The Basics
Id: 4723
Status: resolved
Priority: 0/
Queue: Class-DBI

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

Bug Information
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