On Mon, 3 Dec 2012, Marcos Douglas wrote:

On Mon, Dec 3, 2012 at 2:03 PM,  <michael.vancann...@wisa.be> wrote:


On Mon, 3 Dec 2012, silvioprog wrote:

Guys,

Is "Assign" method implemented for dataset in FPC?


No, it is not. Datasets differ wildly in how they access and store data.

Michael.

But all descendents use TFieds classes so, why not?
I can use a loop and the Append method, but this is not faster.

Speed is not the issue.

There is simply no way to tell what this action will do behind the scenes.

You might for example generate a huge amount of queries, which will presumably all fail, since the records already exist in the database.

Then: Should the transaction be copied ? etc. etc. etc.

In short: it is not implemented, and I doubt it every will be, at least at the 
TDataset level.

When using a pure TBufDataset, probably it is possible to copy the data package
(much like TClientDataset in Delphi), but this would need to be implemented.


Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to