<?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"
	>
<channel>
	<title>Comments on: MySQL Transactions and Auto Committing&#160;Queries</title>
	<atom:link href="http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/</link>
	<description>Everyone needs a hug.</description>
	<pubDate>Wed, 19 Nov 2008 11:46:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: hfmmpqnhba</title>
		<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/#comment-12825</link>
		<dc:creator>hfmmpqnhba</dc:creator>
		<pubDate>Thu, 25 Jan 2007 10:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=209#comment-12825</guid>
		<description>&lt;p&gt;&lt;a href="http://qkkkhsl.com" rel="nofollow"&gt;yypyrway&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="http://qkkkhsl.com" rel="nofollow">yypyrway</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: pKG10UxOWi</title>
		<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/#comment-10066</link>
		<dc:creator>pKG10UxOWi</dc:creator>
		<pubDate>Fri, 12 Jan 2007 03:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=209#comment-10066</guid>
		<description>&lt;p&gt;Hi! Very nice site! Thanks you very much! xVNH803Jzdh&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi! Very nice site! Thanks you very much! xVNH803Jzdh</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/#comment-4342</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 06 Dec 2006 04:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=209#comment-4342</guid>
		<description>&lt;p&gt;quote from this page:&lt;/p&gt;

&lt;p&gt;Transactions in MySQL allow us to execute any number of queries that will automatically undo themselves if one of the queries fails. This is great because our data is kept in tact if something were to go wrong after the third of five queries.&lt;/p&gt;

&lt;p&gt;does this mean (pseudo code):&lt;/p&gt;

&lt;p&gt;query("BEGIN")
query("UPDATE table SET col='something'") //success
query("DELETE FROM table1 WHERE col2 IN (1,2,3)") //sucess
query("DELETE FROM table WHERE col2='2 something'")  //fail, ROLLSBACK 
query("COMMIT") // if query #3 didnt fail, it will commit?  or will it commit even after rollback?&lt;/p&gt;

&lt;p&gt;I was thinking that I should check the result of each statement and executing a COMMIT or ROLLBACK appropriately?  but the quote you said on this page seems to make me think I do not need to check the result and that it will ROLLBACK for me?  and if it doesn't roll back, that when it finishes the set of statements, it will COMMIT when I run that statement?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>quote from this page:</p>

<p>Transactions in MySQL allow us to execute any number of queries that will automatically undo themselves if one of the queries fails. This is great because our data is kept in tact if something were to go wrong after the third of five queries.</p>

<p>does this mean (pseudo code):</p>

<p>query(&#8220;BEGIN&#8221;)
query(&#8220;UPDATE table SET col=&#8217;something&#8217;&#8221;) //success
query(&#8220;DELETE FROM table1 WHERE col2 IN (1,2,3)&#8221;) //sucess
query(&#8220;DELETE FROM table WHERE col2=&#8217;2 something&#8217;&#8221;)  //fail, ROLLSBACK 
query(&#8220;COMMIT&#8221;) // if query #3 didnt fail, it will commit?  or will it commit even after rollback?</p>

<p>I was thinking that I should check the result of each statement and executing a COMMIT or ROLLBACK appropriately?  but the quote you said on this page seems to make me think I do not need to check the result and that it will ROLLBACK for me?  and if it doesn&#8217;t roll back, that when it finishes the set of statements, it will COMMIT when I run that statement?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Erwin Moller</title>
		<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/#comment-3274</link>
		<dc:creator>Erwin Moller</dc:creator>
		<pubDate>Thu, 16 Nov 2006 16:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=209#comment-3274</guid>
		<description>&lt;p&gt;Thanks for this solution.
The more I (am forced to) use MySQL, the more I miss Postgresql.
MySQL is really an inmature piece of junk compared to Postgresql. :-/
I was going crazy with a transaction MySQL claimed was rollbacked, but in fact it wasn't.
Tunred out MySQL autocommits when CREATE or ALTER are used. 
Why MySQL? Why oh why?
Did nobody cared to check those functions before shipping, or did they (as usual) burry a note deep into their docs that claimes this is 'by design' ??&lt;/p&gt;

&lt;p&gt;The only reason we are forced to use MySQL is because those guys released it under W$, so all nOObs who cannot tell diff between up and down started using it, and now all serious developers are often forced to use it too. Now Postgresql is released under W$, I was hoping for better times, but it seems too late. MySQL took over big time. :-/&lt;/p&gt;

&lt;p&gt;IMHO Postgresql beats mySQL any day.&lt;/p&gt;

&lt;p&gt;Sorry for the rant, but this is the zillionth time I hit a wall with MySQL.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for this solution.
The more I (am forced to) use MySQL, the more I miss Postgresql.
MySQL is really an inmature piece of junk compared to Postgresql. :-/
I was going crazy with a transaction MySQL claimed was rollbacked, but in fact it wasn&#8217;t.
Tunred out MySQL autocommits when CREATE or ALTER are used. 
Why MySQL? Why oh why?
Did nobody cared to check those functions before shipping, or did they (as usual) burry a note deep into their docs that claimes this is &#8216;by design&#8217;&#160;??</p>

<p>The only reason we are forced to use MySQL is because those guys released it under W$, so all nOObs who cannot tell diff between up and down started using it, and now all serious developers are often forced to use it too. Now Postgresql is released under W$, I was hoping for better times, but it seems too late. MySQL took over big time. :-/</p>

<p>IMHO Postgresql beats mySQL any day.</p>

<p>Sorry for the rant, but this is the zillionth time I hit a wall with MySQL.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/#comment-2220</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 17 Jul 2006 21:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=209#comment-2220</guid>
		<description>&lt;p&gt;Would you mind describing the circumstances under which you are performing DDL queries in the normal operation of a web app?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Would you mind describing the circumstances under which you are performing DDL queries in the normal operation of a web app?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: peter royal</title>
		<link>http://particletree.com/notebook/mysql-transactions-and-auto-committing-queries/#comment-2219</link>
		<dc:creator>peter royal</dc:creator>
		<pubDate>Wed, 12 Jul 2006 04:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=209#comment-2219</guid>
		<description>&lt;p&gt;just as a comparison, you can execute DDL in postgresql inside a transaction no problem.  obviously the decision to switch databases should be predicated upon more than that one simple difference.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>just as a comparison, you can execute DDL in postgresql inside a transaction no problem.  obviously the decision to switch databases should be predicated upon more than that one simple difference.</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.228 seconds -->
