title: my function is returning nothing
body: <pre><code>DELIMITER //
  DROP FUNCTION IF EXISTS TotalProductionCost;
  CREATE FUNCTION TotalProductionCost(Abuilt int(10),Ucost Decimal(5,2) )
  RETURNS Decimal(5,2)
  BEGIN
  DECLARE TotalCost Decimal(5,2);
  SET TotalCost = Abuilt * Ucost; 
  RETURN TotalCost;
  END //
  DELIMITER ;
  
  SELECT TotalProductionCost(10,1000) AS TotalCost;
  </code></pre>
  
  <p>I have created above function when Execute it in mysql workbench it worked fine query executed,but when I called function,it didnt return anything.. query executed suceefully.</p>