The code should be:
sub {
my $db = $DB->table('table_name');
require GT::SQL::Condition;
my $cd = GT::SQL::Condition->new('field_name', 'like', '%foobar%');
my $total = $db->select($cd, ['SUM(sum_ff) as total'])->fetchrow_array;
return $total;
}
TheStone.
B.
sub {
my $db = $DB->table('table_name');
require GT::SQL::Condition;
my $cd = GT::SQL::Condition->new('field_name', 'like', '%foobar%');
my $total = $db->select($cd, ['SUM(sum_ff) as total'])->fetchrow_array;
return $total;
}
TheStone.
B.