dbExpress, IBQuery or Zeos implements it?<div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/3 Marcos Douglas <span dir="ltr"><<a href="mailto:md@delfire.net" target="_blank">md@delfire.net</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Dec 3, 2012 at 2:32 PM, Michael Van Canneyt<br>
<<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>> wrote:<br>
><br>
><br>
> On Mon, 3 Dec 2012, Marcos Douglas wrote:<br>
><br>
>> On Mon, Dec 3, 2012 at 2:03 PM,  <<a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>> On Mon, 3 Dec 2012, silvioprog wrote:<br>
>>><br>
>>>> Guys,<br>
>>>><br>
>>>> Is "Assign" method implemented for dataset in FPC?<br>
>>><br>
>>><br>
>>><br>
>>> No, it is not. Datasets differ wildly in how they access and store data.<br>
>>><br>
>>> Michael.<br>
>><br>
>><br>
>> But all descendents use TFieds classes so, why not?<br>
>> I can use a loop and the Append method, but this is not faster.<br>
><br>
><br>
> Speed is not the issue.<br>
><br>
> There is simply no way to tell what this action will do behind the scenes.<br>
><br>
> You might for example generate a huge amount of queries, which will<br>
> presumably all fail, since the records already exist in the database.<br>
<br>
</div>I guess I didn't understand you, sorry (thanks for the patience).<br>
I'm talking about copy the data only in memory. Do not is necessary<br>
check if record already exists.<br>
<div class="im"><br>
> Then: Should the transaction be copied ? etc. etc. etc.<br>
><br>
<br>
</div>I want, eg., copy a TZQuery (Zeos) to a TSQLQuery or TBufDataSet.<br>
<div class="im"><br>
> In short: it is not implemented, and I doubt it every will be, at least at<br>
> the TDataset level.<br>
<br>
</div>I see.<br>
Well, I wont to compare, but C# have ds.Copy and ds.Clone. I needed<br>
something like that.<br>
<a href="http://msdn.microsoft.com/en-us/library/system.data.dataset.copy.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/system.data.dataset.copy.aspx</a><br>
<div class="im"><br>
> When using a pure TBufDataset, probably it is possible to copy the data<br>
> package<br>
> (much like TClientDataset in Delphi), but this would need to be implemented.<br>
<br>
</div>Yes, like a TClientDataSet -- but I think this code is in midas.dll.<br>
The ClientDataSet copy data from whatever TDataSet descendent to him<br>
and this is fast.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcos Douglas</font></span></blockquote></div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a><br>
</div>