- in ValidateSQL you check c <> c but in "SetDataName" you changed c<>c in 1<>1.
is it correct? Or Validatesql should have 1 <> 1 too?
This was done to distinguish what RB adds internally from what the plug-in adds to the code.
"c <> c" here is added somewhere inside RB itself. This doesn't relate to SetDataName.
- i noticed you are not checking for "informix" anymore, like in "GetTableNames" and "GetDatabaseType". Is it correct?
Yes, this is what I referred in some previous posts when said that the current AnyDAC sources have fixes around that, so AnyDAC plug-in doesn't need to check for "informix" anymore.
I'll try removing something from daanydac (like 4 and 5) and also bring "gettablenames" as old version and I'll see what happens
Yes, you need to use the old version of GetTableNames.
Yes I have the error also if I create manually the connections.
To exclude any chance that connections are created inside the plug-in not in the main thread please modify the code of this method as:
| Code: |
function TdaAnyDACSession.GetDatabaseForName(const aName: String): TComponent;
begin
Result := nil;
if ppInMainThread then
Result := GetDefaultDatabase(aName);
if Result = nil then
Result := inherited GetDatabaseForName(aName);
end;
|