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;
}