Hi,
After upgrading these versions, I am now getting Access Violations when trying to execute a query containing three TLobLocators. This is with an existing program that has worked for a couple of years with Delphi 2006 and DOA 4.0. I am posting the relevant lines below. Any ideas?
Thanks,
Steve
SQL_:=TLobLocator.CreateTemporary(toSession,otCLOB,False);
OBJECT_:=TLobLocator.CreateTemporary(toSession,otCLOB,False);
COLUMN_:=TLobLocator.CreateTemporary(toSession,otCLOB,False);
...
toQuery.SQL.Add(s);
sql_.AsString:=q.sql_statement;
object_.AsString:=q.object_list;
column_.AsString:=q.column_list;
if trim(q.object_list)='' then object_.Clear;
if trim(q.column_list)='' then column_.clear;
toQuery.DeclareVariable('sql_',otCLOB);
toQuery.DeclareVariable('object_',otCLOB);
toQuery.DeclareVariable('column_',otCLOB);
toQuery.SetComplexVariable('sql_',sql_);
toQuery.SetComplexVariable('object_',object_);
toQuery.SetComplexVariable('column_',column_);
try
toQuery.Execute;
except
...
After upgrading these versions, I am now getting Access Violations when trying to execute a query containing three TLobLocators. This is with an existing program that has worked for a couple of years with Delphi 2006 and DOA 4.0. I am posting the relevant lines below. Any ideas?
Thanks,
Steve
SQL_:=TLobLocator.CreateTemporary(toSession,otCLOB,False);
OBJECT_:=TLobLocator.CreateTemporary(toSession,otCLOB,False);
COLUMN_:=TLobLocator.CreateTemporary(toSession,otCLOB,False);
...
toQuery.SQL.Add(s);
sql_.AsString:=q.sql_statement;
object_.AsString:=q.object_list;
column_.AsString:=q.column_list;
if trim(q.object_list)='' then object_.Clear;
if trim(q.column_list)='' then column_.clear;
toQuery.DeclareVariable('sql_',otCLOB);
toQuery.DeclareVariable('object_',otCLOB);
toQuery.DeclareVariable('column_',otCLOB);
toQuery.SetComplexVariable('sql_',sql_);
toQuery.SetComplexVariable('object_',object_);
toQuery.SetComplexVariable('column_',column_);
try
toQuery.Execute;
except
...