in reply to Class::DBI and Ima::DBI and ints and objects
But that breaks encapsulation rather blatantly. Since Class::DBI is really about the mapping of tables to classes (roughly) it's probably a better idea just to drop into raw DBI e.gRk::M->set_sql(maxid => q(select max(m) from m)); my $max = +(Rk::M->search_maxid)[0]->{'max(m)'};
my $max = $dbh->selectrow_array('select max(m) from m');
_________
broquaint
|
---|