<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SQLite Notes</title>
	<atom:link href="http://www.neatfilm.com/2008/06/13/sqlite-notes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neatfilm.com/2008/06/13/sqlite-notes/</link>
	<description></description>
	<lastBuildDate>Thu, 25 Aug 2011 14:12:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jens Wegar</title>
		<link>http://www.neatfilm.com/2008/06/13/sqlite-notes/comment-page-1/#comment-12448</link>
		<dc:creator>Jens Wegar</dc:creator>
		<pubDate>Mon, 09 Feb 2009 17:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.neatfilm.com/?p=72#comment-12448</guid>
		<description>&lt;p&gt;Thanks for the reply. I&#039;m guessing my issue is because I&#039;m using asynchronous mode and perhaps the first statement (write) does not complete before the second statement (read) is run. I&#039;ll try with refactoring the code so that I make sure to do the read operation only after the write has completed.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the reply. I&#8217;m guessing my issue is because I&#8217;m using asynchronous mode and perhaps the first statement (write) does not complete before the second statement (read) is run. I&#8217;ll try with refactoring the code so that I make sure to do the read operation only after the write has completed.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: george</title>
		<link>http://www.neatfilm.com/2008/06/13/sqlite-notes/comment-page-1/#comment-12447</link>
		<dc:creator>george</dc:creator>
		<pubDate>Mon, 09 Feb 2009 05:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.neatfilm.com/?p=72#comment-12447</guid>
		<description>&lt;p&gt;You can have INSERT(write) and SELECT(read) statements inside a single transaction (use begin and commit).&lt;/p&gt;

&lt;p&gt;If your connection in asynchronous mode, you have to wait first statement complete, then execute next statement. &lt;/p&gt;

&lt;p&gt;Be careful on &lt;a href=&quot;http://www.neatfilm.com/post_images/09Jan/sqlite_lock.png&quot; rel=&quot;nofollow&quot;&gt;locks&lt;/a&gt;. &lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can have INSERT(write) and SELECT(read) statements inside a single transaction (use begin and commit).</p>

<p>If your connection in asynchronous mode, you have to wait first statement complete, then execute next statement. </p>

<p>Be careful on <a href="http://www.neatfilm.com/post_images/09Jan/sqlite_lock.png" rel="nofollow">locks</a>. </p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Wegar</title>
		<link>http://www.neatfilm.com/2008/06/13/sqlite-notes/comment-page-1/#comment-12446</link>
		<dc:creator>Jens Wegar</dc:creator>
		<pubDate>Sun, 08 Feb 2009 20:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.neatfilm.com/?p=72#comment-12446</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Since you seem to know some about transactions in SQLite and AIR, I have the following question that I hope you can answer:&lt;/p&gt;

&lt;p&gt;Is it possible to have a SELECT statement after a INSERT or UPDATE statement in a transaction? &lt;/p&gt;

&lt;p&gt;Reason I&#039;m asking is I have a application where I can edit and insert items to a datagrid. Inserting new items happens through copy-pasting from the system clipboard, after which I would like the datagrid to update to reflect the change. But if I put both the INSERT and SELECT statement in the same transaction, my application crashes. The insert get&#039;s run though, because the item is in the list if I relaunch the application. If I remove the SELECT statement, the application works (i.e. doesn&#039;t crash).  Any thoughts?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>

<p>Since you seem to know some about transactions in SQLite and AIR, I have the following question that I hope you can answer:</p>

<p>Is it possible to have a SELECT statement after a INSERT or UPDATE statement in a transaction? </p>

<p>Reason I&#8217;m asking is I have a application where I can edit and insert items to a datagrid. Inserting new items happens through copy-pasting from the system clipboard, after which I would like the datagrid to update to reflect the change. But if I put both the INSERT and SELECT statement in the same transaction, my application crashes. The insert get&#8217;s run though, because the item is in the list if I relaunch the application. If I remove the SELECT statement, the application works (i.e. doesn&#8217;t crash).  Any thoughts?</p>]]></content:encoded>
	</item>
</channel>
</rss>

