SpecificOptions
SpecificOptions
Hello,
after migrating form 3.7 to 4.0.2 we have problem with this code:
FSQLDataSet.SpecificOptions.Values['Oracle.AutoClose'] := 'True';
FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False';
We call setting before assignment of Connection property and error "Connection value is required" is shown. Is it a new behavior or an error?
Thanks
Zdenek
after migrating form 3.7 to 4.0.2 we have problem with this code:
FSQLDataSet.SpecificOptions.Values['Oracle.AutoClose'] := 'True';
FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False';
We call setting before assignment of Connection property and error "Connection value is required" is shown. Is it a new behavior or an error?
Thanks
Zdenek
Definitively not fixed in 4.1.3
Please run this *test* code:AlexP wrote:hello,
This problem has already been fixed.
Please check that you have completely removed the previous version of UniDAC (including *.bpl, *.dcu, and *.bpl) and re-install UniDAC 4.1.3.
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var lConnection: TUniConnection;
begin
lConnection := TUniConnection.Create(Self);
lConnection.SpecificOptions.Values['Oracle.PrecisionSmallint'] := '0';
lConnection.SpecificOptions.Values['Oracle.PrecisionLargeint'] := '0';
lConnection.ProviderName := 'Oracle';
end;Provider is not defined.
---------------------------
Reverted to UniDAC 3.70.0.19
4.1.4 is better, but this line still makes the problem
FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False';
If I change it to
FSQLDataSet.SpecificOptions.Values['Oracle.TemporaryLobUpdate']:='False';
code works.
Is it new behavior or is it still an error.
Version 3.70 had no problem with this line.
FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False';
If I change it to
FSQLDataSet.SpecificOptions.Values['Oracle.TemporaryLobUpdate']:='False';
code works.
Is it new behavior or is it still an error.
Version 3.70 had no problem with this line.
Hello
Now you can use simple specific options definition, if you defined Connection for DataSet and Provider for Connection:
In other cases you should define provider name explicitly:
In version 3.7 you could define FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False', but this option was ignored. Now we raise exception "Connection value is required" for these cases.
Now you can use simple specific options definition, if you defined Connection for DataSet and Provider for Connection:
Code: Select all
FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False';Code: Select all
FSQLDataSet.SpecificOptions.Values['Oracle.TemporaryLobUpdate']:='False';In version 3.7 you could define FSQLDataSet.SpecificOptions.Values['TemporaryLobUpdate']:='False', but this option was ignored. Now we raise exception "Connection value is required" for these cases.