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();
}
// 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();
}