<?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: Simple gotchas with debugging Groovy SQL</title>
	<atom:link href="http://almaer.com/blog/simple-gotchas-with-debugging-groovy-sql/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/simple-gotchas-with-debugging-groovy-sql</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Sat, 08 Sep 2012 07:06:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James Strachan</title>
		<link>http://almaer.com/blog/simple-gotchas-with-debugging-groovy-sql/comment-page-1#comment-4462</link>
		<dc:creator>James Strachan</dc:creator>
		<pubDate>Wed, 14 Jul 2004 22:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/simple-gotchas-with-debugging-groovy-sql#comment-4462</guid>
		<description>Dion, your wish is my command (again :).

CVS HEAD now warns if you accidentally quote a dynamic expression.

Strictly speaking, GroovySQL could be clever enough to trim off the unnecessary quotes for you automatically and still reuse the prepared statement - but for now the query still works (maybe there&#039;s a need for this as it enforces string coercion?) - but gives a nice warning to let you know there&#039;s a possible security leak.


</description>
		<content:encoded><![CDATA[<p>Dion, your wish is my command (again :).</p>
<p>CVS HEAD now warns if you accidentally quote a dynamic expression.</p>
<p>Strictly speaking, GroovySQL could be clever enough to trim off the unnecessary quotes for you automatically and still reuse the prepared statement &#8211; but for now the query still works (maybe there&#8217;s a need for this as it enforces string coercion?) &#8211; but gives a nice warning to let you know there&#8217;s a possible security leak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion</title>
		<link>http://almaer.com/blog/simple-gotchas-with-debugging-groovy-sql/comment-page-1#comment-4461</link>
		<dc:creator>Dion</dc:creator>
		<pubDate>Wed, 14 Jul 2004 19:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/simple-gotchas-with-debugging-groovy-sql#comment-4461</guid>
		<description>That would be like butter :)

D
</description>
		<content:encoded><![CDATA[<p>That would be like butter :)</p>
<p>D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Strachan</title>
		<link>http://almaer.com/blog/simple-gotchas-with-debugging-groovy-sql/comment-page-1#comment-4460</link>
		<dc:creator>James Strachan</dc:creator>
		<pubDate>Wed, 14 Jul 2004 19:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/simple-gotchas-with-debugging-groovy-sql#comment-4460</guid>
		<description>Maybe we could turn on warnings in Groovy SQL so that if you use a $expression inside some SQL it warns you if there are single or double quotes around the expression.

e..g

sql.eachRow &quot;select * from blah where x = &#039;$foo&#039;&quot;

would generate a warning but this wouldn&#039;t

sql.eachRow &quot;select * from blah where x = $foo&quot;

</description>
		<content:encoded><![CDATA[<p>Maybe we could turn on warnings in Groovy SQL so that if you use a $expression inside some SQL it warns you if there are single or double quotes around the expression.</p>
<p>e..g</p>
<p>sql.eachRow &#8220;select * from blah where x = &#8216;$foo&#8217;&#8221;</p>
<p>would generate a warning but this wouldn&#8217;t</p>
<p>sql.eachRow &#8220;select * from blah where x = $foo&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
