Bug in TOracleScript.

Klestov

Member
Sample Code:

// Initialize connect to test database.
OracleSession1->LogonDatabase = "testdb";
OracleSession1->LogonUsername = "system";
OracleSession1->LogonPassword = "password";
OracleSession1->LogOn();

try
{
// void SQL script.
OracleScript1->Lines->Text = "";

// Run SQL script and get EListError ("List index out of bound (0)") exception.
OracleScript1->Execute();
/*
Solution of problem
try { ... } catch (EListError & E) { ... }
or
if (OracleScript1->Lines->Text != "") { ... OracleScript->Execute() ... }
not good solution.
Check bug in DOA.
*/
}
__finally
{
// Disconnect from test database.
OracleSession1->LogOff();
}
 
Executing an empty script does indeed fail with the reported exception. We'll fix it.

------------------
Marco Kalter
Allround Automations
 
Back
Top