AssignConnect

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cxg417
Posts: 41
Joined: Thu 26 Mar 2009 08:07

AssignConnect

Post by cxg417 » Thu 19 Nov 2009 03:14

if MSSQL then
begin
DestConnection.AssignConnect(SourceConnection);
DestConnection.Open;
UniQuery.Close;
UniQuery.Connection:= DestConnection;
UniQuery.Open; -->>"OK"
end;

if ASE then
begin
DestConnection.AssignConnect(SourceConnection);
DestConnection.Open;
UniQuery.Close;
UniQuery.Connection:= DestConnection;
UniQuery.Open; -->>"Error"
end;
________
Toyota g1 specifications
Last edited by cxg417 on Tue 15 Feb 2011 14:59, edited 1 time in total.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 19 Nov 2009 08:41

We have fixed this problem. The fix will be included in the next build of UniDAC.

cxg417
Posts: 41
Joined: Thu 26 Mar 2009 08:07

Post by cxg417 » Fri 20 Nov 2009 12:16

if MSSQL then
begin
DestConnection.AssignConnect(SourceConnection);
DestConnection.Open;
UniQuery.Close;
UniQuery.Connection:= DestConnection;
UniQuery.Open;
UniQuery.Edit;
UniQuery.FieldByName('sField1').AsString:= 'ABC';
UniQuery.Post;
DestConnection.StartTransaction
try
UniQuery.ApplyUpdates; -->>Error:"Invalid class typecast"
DestConnection.Commit;
UniQuery.CommitUpdates;
except
UniQuery.RestoreUpdates;
DestConnection.Rollback;
end;
end;
________
Honda ballade specifications
Last edited by cxg417 on Tue 15 Feb 2011 14:59, edited 1 time in total.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 20 Nov 2009 13:28

We have fixed this problem. The fix will be included in the next build of UniDAC.

Post Reply