<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Streamlined: Using %% when calling Connection.quote?</title>
    <link>http://streamlinedframework.org/articles/2007/07/19/using-when-calling-connection-quote</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stop banging rocks together and build something</description>
    <item>
      <title>Using %% when calling Connection.quote?</title>
      <description>&lt;p&gt;I have committed a fix for &lt;a href="http://trac.streamlinedframework.org/ticket/43"&gt;Trac 43&lt;/a&gt; as svn 565. It seems that some code paths through Rails &lt;code&gt;Connection.quote&lt;/code&gt; use &lt;code&gt;sprintf&lt;/code&gt; internally, while others do not. So we now pass &lt;code&gt;%%&lt;/code&gt; which either acts as an escape, or doesn&amp;#8217;t.&lt;/p&gt;
&lt;p&gt;Is passing the unnecessary &lt;code&gt;%&lt;/code&gt; on to the database is innocuous? It feels dirty. Is this a bug in ActiveRecord?&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jul 2007 22:11:16 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:785c21fd-3e83-4a51-ada5-e5e5926ac0d1</guid>
      <author>Stu</author>
      <link>http://streamlinedframework.org/articles/2007/07/19/using-when-calling-connection-quote</link>
      <category>Fixes</category>
      <trackback:ping>http://streamlinedframework.org/articles/trackback/140</trackback:ping>
    </item>
  </channel>
</rss>
