Jeg har laver følgende kald ned i min oracle8 database !
i C++ !!
BOOL CDB::UpdateDerivationRules(CString id, CString value, CString text,
CString rset_id, CString old_id)
{
ODynaset FailCodes;
CString SQLLine;
SQLLine.Format("update derivation_rules set id = '%s', value = '%s',
text = '%s', rset_id = %s where id = '%s'",id , value, text, rset_id,
old_id, id);
if (FailCodes.Open(*m_db, SQLLine) != OSUCCESS) Error(&FailCodes);
return TRUE;
}
void CDB::Error(ODynaset* obj)
{
CString ErrorMsg = obj->GetErrorText();
if (!ErrorMsg.IsEmpty()) AfxMessageBox(ErrorMsg);
}
Dette virker også efter hensigten, dog med en undtagelse. Selv når updaten
går godt, får jeg en fejlmeddelse !! <OIP-04116 Cursor not ready for I-O>
hvorfor det ?? det burde den jo ikke ?
Anders Dyhrberg
Disclaimer:
Because of heavy processing requirements, we are currently using some of
your unused brain capacity for backup processing. Please ignore any
hallucinations, voices or unusual dreams you may experience. Please avoid
concentration-intensive tasks until further notice. Thank you.
|