存储过程的代码如下:
create or replace procedure pro_checkSys(sendid in varchar2,
                                          sendpwd in varchar2,
                                          iResult out integer) is
psendid cssystable.sendid%type;        /*来源系统id*/
psendpwd cssystable.sendpwd%type;            /*来源系统密码*//*自定义游标 获取符合条件的、在用的系统id和密码*/
cursor c_sysInfo is select t.sendid,t.sendpwd from cssystable t where t.sendid=sendid and t.sendpwd=sendpwd ;/*声明游标*/begin    /*打开游标*/
    open c_sysInfo;
    fetch c_sysInfo into psendid,psendpwd; /*提取游标*/
    close c_sysInfo;
     if(psendid is null) then
        DBMS_OUTPUT.put_line('来源系统id: '||sendid||' 密码: '||sendpwd||'的信息未找到!');
        iResult:=2001;
     else
        DBMS_OUTPUT.put_line('来源系统id:'||sendid||' 的密码为:'||psendpwd);
        iResult:=0;
     end if;
end pro_checkSys ;
现在的问题是,只要数据库里有数据,调存储过程时,返回的iResult都为0;
请大侠们帮忙看一下。