TUniConnection.SpecificOptions.Update

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

TUniConnection.SpecificOptions.Update

Post by albourgz » Tue 16 Aug 2016 10:29

Hi,
connecting to oracle.

I would like to know if it is possible to overwrite the SpecificOptions from TUniConnection at runtime.

As default: Oracle.Schema is set to XXX in DFM. When I connect, default schema is XXX.
If, before connecting, I run

Code: Select all

db->SpecificOptions->Add("Oracle.Schema=YYY");
there is no error but current schema is still XXX (the Oracle.Schema is NOT updated!!).
If , in the component at design-time, I remove the XXX from oracle's Schema property, the schema is set at run-time to YYY.

So the question: is there any way to update the SpecificOptions to a different value than the one set at design-time? Or do I have to leave all empty at design time and to set all values at run-time?

Kind regards.

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

Re: TUniConnection.SpecificOptions.Update

Post by AlexP » Tue 16 Aug 2016 11:21

Hello,

Instead of adding an option, you should use Values

Code: Select all

UniConnection1->SpecificOptions->Values["Oracle.Schema"] := "YYY";

Post Reply