This was the main reason I gave up on sqldb and moved to Zeos.<br><br><div class="gmail_quote">2010/11/23 Mark Morgan Lloyd <span dir="ltr"><<a href="mailto:markMLl.lazarus@telemetry.co.uk">markMLl.lazarus@telemetry.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Before anything else I'd like to say that I'm entirely familiar with transactions in the SQL context. However I've been having a bit of difficulty sorting out the relationship between a TPQConnection, multiple TSQLQuery, and transaction object(s).<br>
<br>
I'm roughing out a program which I am trying to keep responsive even if getting updated data from the backend using SQL is slow. To do that I've got two TSQLQuery objects, one of which can be queried by code which updates the UI and the other of which will be updated the next time a query is to be run (at which point they'll be swapped).<br>
<br>
Since this is strictly read-only, I can't see why I need transactions, but I obviously respect the judgment of whoever designed the architecture.<br>
<br>
Am I correct in my understanding that in order to close the transaction I have to set Action (e.g. to caRollback) and then Active to False? It appears that if I don't do this the query never sees data being updated at the backend.<br>
<br>
To support the two TSQLQuery objects, do I need one or two TSQLTransaction objects? If I have to have two TSQLTransaction objects, does that imply that I also have to have two TPQConnection objects?<br>
<br>
-- <br>
Mark Morgan Lloyd<br>
markMLl .AT. <a href="http://telemetry.co" target="_blank">telemetry.co</a> .DOT. uk<br>
<br>
[Opinions above are the author's, not those of his employers or colleagues]<br><font color="#888888">
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Atenciosamente,<br>Alexsander da Rosa<br>Linux User #113925<br><br>"Extremismo na defesa da liberdade não é defeito.<br>Moderação na busca por justiça não é virtude."<br>
-- Barry Goldwater<br>