ORA-01008 并非所有变量都已关联 ????
const char szSql[]= "select workertype from v_zj_workertype where coding = :PARAM_CODING" ;
if(0 == m_OParameter.GetCount())
{
//第二个参数nNum是int型,确定不是空值
m_OPNewzjZjNameLeft.Add("PARAM_CODING",nNum,OPARAMETER_INVAR,OTYPE_NUMBER) ;
if(OFAILURE == m_RowSet.Open(m_Db,szSql))
{
strMsg.Format("%s",m_RowSet.GetErrorText()) ; //strMsg = "ORA-01008 并非所有变量都已关联"
return FALSE ;
}
}
else
{
……
}
这段代码执行到m_RowSet.Open(m_Db,szSql))老返回OFAILURE
提示"ORA-01008 并非所有变量都已关联"
请教各位,问题出在哪里?谢谢