I'm trying to call a procedure. But I got an error: PROCEDURE otrs.proTimeUnit can't return a result set in the given context, SQL: 'call proTimeUnit('2012-10-30','2012-11-30','All')'
And here is my code to call proTimeUnit
Code: Select all
my $StartDate = $Param{FromYear}.'-'.$Param{FromMonth}.'-'.$Param{FromDay};
my $EndDate = $Param{ToYear}.'-'.$Param{ToMonth}.'-'.$Param{ToDay};
# fetch database and add row blocks
if ( $Self->{DBObject}->Prepare( SQL => 'call proTimeUnit(\''.$StartDate.'\',\''.$EndDate.'\',\''.$Param{TicketStatus}.'\')', ) )
Please help me for this
Thanks
Hoang Vu