Clayton Arends
Member²
All,
I have just begun using DOA and I'm rather impressed with it. I am having a problem with it, however. Why does the following always cause the above Oracle Error?
OracleQuery1->Clear();
OracleQuery1->SQL->Add("select myfield into
FieldVar from mytable");
OracleQuery1->DeclareVariable("pFieldVar", otInteger);
OracleQuery1->Execute();
During the execute the ORA-01036 exception is thrown. It happens at both design-time and run-time and only if I declare the variable. If I don't declare the variable the statement executes just fine but the pFieldVar variable cannot be accessed.
Thanks,
Clayton
I have just begun using DOA and I'm rather impressed with it. I am having a problem with it, however. Why does the following always cause the above Oracle Error?
OracleQuery1->Clear();
OracleQuery1->SQL->Add("select myfield into

OracleQuery1->DeclareVariable("pFieldVar", otInteger);
OracleQuery1->Execute();
During the execute the ORA-01036 exception is thrown. It happens at both design-time and run-time and only if I declare the variable. If I don't declare the variable the statement executes just fine but the pFieldVar variable cannot be accessed.
Thanks,
Clayton