TUniSQL.Session -> unknown identifier.

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MDrueck
Posts: 18
Joined: Fri 01 Apr 2011 14:06
Location: Germany

TUniSQL.Session -> unknown identifier.

Post by MDrueck » Fri 05 Feb 2016 14:40

Hi,

I'm updating a project from ODAC February 2011 to ODAC 9.6.21 for RAD Studio 10.

There's one line of code which does not compile:

Code: Select all

function TfrmMainAOS.EnqueueFARMS : Boolean;
var
  OraSQL           : TUniSQL;
  PayLoad          : string;
begin
  Result := False;
  try
    OraSession.ConnectString := edtConnectString.Text;

    PayLoad := Format(mom_out.Lines.Text, [
        XMLDateTimeStr(Int(FStartDate)), XMLDateTimeStr(Int(FEndDate)), XMLDateTimeStr(Now)]);
    AddResults(Format('PayLoad: [%s]', [PayLoad]));

    OraSQL          := TUniSQL.Create(nil);
    OraSQL.Session  := OraSession;
The last line does not compile because of "OraSQL.Session" -> unknown identifier.

How do I fix that? TIA, Markus

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUniSQL.Session -> unknown identifier.

Post by AlexP » Mon 08 Feb 2016 09:30

Hello,

The Session property is present only in ODAC. In UniDAC, (you are using UniSQL) a similar property is called Connection.

Post Reply