CREATE FUNCTION `qc_pgmtestlastesthours`($project int) RETURNS float(10,2)
BEGIN
    declare estimate float(10,2) default 0__DELIMITER__
    declare inited int default 0__DELIMITER__
    select qc_cminited($project,'PP') into inited__DELIMITER__
    IF inited = 1 THEN
    select qc_gettestlastesthours($project) into estimate__DELIMITER__
    return estimate__DELIMITER__
    ELSE 
    return 0__DELIMITER__
    END IF__DELIMITER__
END