CREATE FUNCTION qc_pgmurinitscale($project int) returns float (10,2)
begin
    declare scale float(10,2) default 0__DELIMITER__
    declare inited int default 0__DELIMITER__
    select qc_cminited($project, 'URS') into inited__DELIMITER__
    IF inited = 1 THEN
    select qc_initscale($project, 'URS','requestEst') into scale__DELIMITER__
    return scale__DELIMITER__
    ELSE 
    return 0__DELIMITER__
    END IF__DELIMITER__
end