Page 1 of 1

TUniConnection.SpecificOptions.Update

Posted: Tue 16 Aug 2016 10:29
by albourgz
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.

Re: TUniConnection.SpecificOptions.Update

Posted: Tue 16 Aug 2016 11:21
by AlexP
Hello,

Instead of adding an option, you should use Values

Code: Select all

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