<?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: Interesting ColdFusion CFQuery &quot;Feature&quot;</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Raymond Camden</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-307334</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Thu, 03 May 2012 15:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-307334</guid>
		<description>I can confirm this bug was not fixed in ColdFusion 10.</description>
		<content:encoded><![CDATA[<p>I can confirm this bug was not fixed in ColdFusion 10.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Camden</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-307333</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Thu, 03 May 2012 15:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-307333</guid>
		<description>CF10 is in public beta - someone test it. :)</description>
		<content:encoded><![CDATA[<p>CF10 is in public beta &#8211; someone test it. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-304214</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 12 Apr 2012 00:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-304214</guid>
		<description>Does anyone know if this bug was fixed?  If so, do you have the bug ID?  I can&#039;t seem to find it.</description>
		<content:encoded><![CDATA[<p>Does anyone know if this bug was fixed?  If so, do you have the bug ID?  I can't seem to find it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-206888</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-206888</guid>
		<description>@Ali,

I think the person was doing something like:


 select id from users where .....
select * from orders where u.id = #users.id#


There&#039;s no reason that the nested CFQuery couldn&#039;t just be moved outside the parent CFQuery. Just struct me as very odd the first time I saw this.</description>
		<content:encoded><![CDATA[<p>@Ali,</p>
<p>I think the person was doing something like:</p>
<p> select id from users where &#8230;..<br />
select * from orders where u.id = #users.id#</p>
<p>There's no reason that the nested CFQuery couldn't just be moved outside the parent CFQuery. Just struct me as very odd the first time I saw this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-206887</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-206887</guid>
		<description>@Ben -

Sorry to go off another tangent.
I&#039;m curious, why would someone want to run an inline nested CFQuery for anything?

I mean it makes sense to me, in modularizing code to put queries in their own functions and then you&#039;d 
need to do soemthing like this.

But still I&#039;m interested in what the old-school example you ran into.  I can&#039;t ever see a reason for nesting
a CFQuery inside another.  Because at that point you can do whatever you need to in almost T-SQL syntax.</description>
		<content:encoded><![CDATA[<p>@Ben -</p>
<p>Sorry to go off another tangent.<br />
I'm curious, why would someone want to run an inline nested CFQuery for anything?</p>
<p>I mean it makes sense to me, in modularizing code to put queries in their own functions and then you'd<br />
need to do soemthing like this.</p>
<p>But still I'm interested in what the old-school example you ran into.  I can't ever see a reason for nesting<br />
a CFQuery inside another.  Because at that point you can do whatever you need to in almost T-SQL syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-204308</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Thu, 04 Feb 2010 22:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-204308</guid>
		<description>The first time I saw someone run a CFQuery tag *inside* another CFQuery tag, I was blown away that it worked AT ALL. Keep in mind, that was *inline* nested CFQuery tags. The use of a function makes it a bit more natural feeling.</description>
		<content:encoded><![CDATA[<p>The first time I saw someone run a CFQuery tag *inside* another CFQuery tag, I was blown away that it worked AT ALL. Keep in mind, that was *inline* nested CFQuery tags. The use of a function makes it a bit more natural feeling.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-204291</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-204291</guid>
		<description>No, you&#039;re correct.  With the initial three snippets, the code will behave as desired, because the DSN is overwritten with the same value.  But if you look at the full test case, you&#039;ll see where it&#039;ll fail (on the fourth INSERT query).</description>
		<content:encoded><![CDATA[<p>No, you're correct.  With the initial three snippets, the code will behave as desired, because the DSN is overwritten with the same value.  But if you look at the full test case, you'll see where it'll fail (on the fourth INSERT query).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Munson</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-204288</link>
		<dc:creator>Jake Munson</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-204288</guid>
		<description>Ok, well I guess I&#039;m still confused then.  You said, &quot;it executes with the datasource passed to the last CFQUERY tag before the closing CFQUERY tag&quot; but looking at your snippets before that statement, they all use the same datasource.  So I don&#039;t see a problem, your inner query is updating the outer query&#039;s datasource, but it was the same to begin with.  Or am I just being thick?</description>
		<content:encoded><![CDATA[<p>Ok, well I guess I'm still confused then.  You said, "it executes with the datasource passed to the last CFQUERY tag before the closing CFQUERY tag" but looking at your snippets before that statement, they all use the same datasource.  So I don't see a problem, your inner query is updating the outer query's datasource, but it was the same to begin with.  Or am I just being thick?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-204284</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Thu, 04 Feb 2010 17:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-204284</guid>
		<description>Ray, you (and David) win the prize.  And no, Adam, I didn&#039;t search the bugbase first.  Bad Developer.  :)

Jake, I intentionally used dsn_A for all the snippets; the test case uses both DSNs and you&#039;ll see the side effects of it being reset in the dumps.  I was trying to just set the state with the involved statements first - no weirdness, no complexity - but obviously didn&#039;t do an exemplary job at it.</description>
		<content:encoded><![CDATA[<p>Ray, you (and David) win the prize.  And no, Adam, I didn't search the bugbase first.  Bad Developer.  :)</p>
<p>Jake, I intentionally used dsn_A for all the snippets; the test case uses both DSNs and you'll see the side effects of it being reset in the dumps.  I was trying to just set the state with the involved statements first &#8211; no weirdness, no complexity &#8211; but obviously didn't do an exemplary job at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Munson</title>
		<link>https://www.barneyb.com/barneyblog/2010/02/03/interesting-coldfusion-cfquery-feature/comment-page-1/#comment-204274</link>
		<dc:creator>Jake Munson</dc:creator>
		<pubDate>Thu, 04 Feb 2010 16:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1207#comment-204274</guid>
		<description>I was confused at first because you have a mistake in your example code.  Your second and third example code blocks both use &#039;dsn_A&#039;.  I think you meant one of those to be &#039;dsn_B&#039;.</description>
		<content:encoded><![CDATA[<p>I was confused at first because you have a mistake in your example code.  Your second and third example code blocks both use 'dsn_A'.  I think you meant one of those to be 'dsn_B'.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
