<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: ColdFusion bug or feature?</title>
	<atom:link href="http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<lastBuildDate>Tue, 24 Jan 2012 20:49:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/comment-page-1/#comment-4204</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Wed, 05 Apr 2006 19:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/#comment-4204</guid>
		<description>&lt;p&gt;Thanks guys for the clarification. By looking at the code alone, you would not think that q1.recnum in the q2 loop is in fact implicitly treated as q1.recnum[1]. Testing is important.&lt;/p&gt;

&lt;p&gt;To solve this issue, I copied q1.recnum to the variables scope and used the variable inside the q2 loop:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;cfset variables.recnum = q1.recnum&gt;
&lt;cfloop query=&quot;q2&quot;&gt;
    Inside q2 loop: &lt;cfoutput&gt;#variables.recnum#&lt;/cfoutput&gt;
    &lt;br&gt;
&lt;/cfloop&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But now I know that there is another way: q1.recnum[q1.currentRow]&lt;/p&gt;

&lt;p&gt;Thanks again.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks guys for the clarification. By looking at the code alone, you would not think that q1.recnum in the q2 loop is in fact implicitly treated as q1.recnum[1]. Testing is important.</p>

<p>To solve this issue, I copied q1.recnum to the variables scope and used the variable inside the q2 loop:</p>

<pre><code>&lt;cfset variables.recnum = q1.recnum&gt;
&lt;cfloop query="q2"&gt;
    Inside q2 loop: &lt;cfoutput&gt;#variables.recnum#&lt;/cfoutput&gt;
    &lt;br&gt;
&lt;/cfloop&gt;
</code></pre>

<p>But now I know that there is another way: q1.recnum[q1.currentRow]</p>

<p>Thanks again.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Guill</title>
		<link>http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/comment-page-1/#comment-4202</link>
		<dc:creator>Ryan Guill</dc:creator>
		<pubDate>Wed, 05 Apr 2006 16:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/#comment-4202</guid>
		<description>&lt;p&gt;I had this same problem not long ago.  I posted it to cf-talk if you want to see the discussion on it.  If you cant find it let me know.&lt;/p&gt;

&lt;p&gt;But what you need to make it work is instead of 
    
        Inside q2 loop: #q1.recnum#
        
    &lt;/p&gt;

&lt;p&gt;use&lt;/p&gt;

&lt;pre&gt;&lt;cfloop query=&quot;q2&quot;&gt;
    Inside q2 loop: &lt;cfoutput&gt;#q1.recnum[q1.currentRow]#&lt;/cfoutput&gt;
    &lt;br&gt;
&lt;/cfloop&gt;
&lt;/pre&gt;

&lt;p&gt;The current row is always correct where the loop gets messed up.  This will force it to be correct.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I had this same problem not long ago.  I posted it to cf-talk if you want to see the discussion on it.  If you cant find it let me know.</p>

<p>But what you need to make it work is instead of 
    
        Inside q2 loop: #q1.recnum#
        
    </p>

<p>use</p>

<pre>&lt;cfloop query="q2"&gt;
    Inside q2 loop: &lt;cfoutput&gt;#q1.recnum[q1.currentRow]#&lt;/cfoutput&gt;
    &lt;br&gt;
&lt;/cfloop&gt;
</pre>

<p>The current row is always correct where the loop gets messed up.  This will force it to be correct.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/comment-page-1/#comment-4201</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Wed, 05 Apr 2006 16:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/#comment-4201</guid>
		<description>&lt;p&gt;To put Ray&#039;s comment another way: only the innermost query is ever implicitly referenced, all other queries must be referenced with full name.column[row] notation, and as you know, leaving off the row uses an implicit 1.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>To put Ray&#8217;s comment another way: only the innermost query is ever implicitly referenced, all other queries must be referenced with full name.column[row] notation, and as you know, leaving off the row uses an implicit 1.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Camden</title>
		<link>http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/comment-page-1/#comment-4200</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Wed, 05 Apr 2006 15:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/04/05/coldfusion-bug-or-feature/#comment-4200</guid>
		<description>&lt;p&gt;Inside q2, when CF &quot;talks&quot; to the q1 query,it is NOT in the contest of cfoutput query=q1 anymore. Therefore it acts the same as&lt;/p&gt;

&lt;p&gt;q1.columnname[1]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Inside q2, when CF &#8220;talks&#8221; to the q1 query,it is NOT in the contest of cfoutput query=q1 anymore. Therefore it acts the same as</p>

<p>q1.columnname[1]</p>]]></content:encoded>
	</item>
</channel>
</rss>

