<?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: Running arbitrary database queries</title>
	<atom:link href="http://www.chnorton.com.au/2008/06/18/running-arbitrary-database-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chnorton.com.au/2008/06/18/running-arbitrary-database-queries/</link>
	<description>A blog about software engineering, web development, education and my otaku interests.</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:17:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: chhaya</title>
		<link>http://www.chnorton.com.au/2008/06/18/running-arbitrary-database-queries/comment-page-1/#comment-3686</link>
		<dc:creator>chhaya</dc:creator>
		<pubDate>Tue, 17 Mar 2009 08:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.chnorton.com.au/?p=243#comment-3686</guid>
		<description>its great</description>
		<content:encoded><![CDATA[<p>its great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vm</title>
		<link>http://www.chnorton.com.au/2008/06/18/running-arbitrary-database-queries/comment-page-1/#comment-2516</link>
		<dc:creator>vm</dc:creator>
		<pubDate>Mon, 01 Dec 2008 16:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.chnorton.com.au/?p=243#comment-2516</guid>
		<description>You have write permissions on read connection because mysql user is the same for both. More proper way would be:

$conn = Mage::getSingleton(&#039;core/resource&#039;)-&gt;getConnection(&#039;core_write&#039;);
$conn -&gt; query(&quot;YOUR QUERY&quot;);</description>
		<content:encoded><![CDATA[<p>You have write permissions on read connection because mysql user is the same for both. More proper way would be:</p>
<p>$conn = Mage::getSingleton(&#8216;core/resource&#8217;)-&gt;getConnection(&#8216;core_write&#8217;);<br />
$conn -&gt; query(&#8220;YOUR QUERY&#8221;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

