cfdump is returning the same wrong results... so strange.

> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 14, 2007 8:48 PM
> To: CF-Talk
> Subject: Re: Why would this query not return the correct data?
> 
> On 10/14/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > @ All...
> >
> > This is just nuts...
> >
> > I can run this sql in an editor and get the correct results:
> >
> > select distinct event_day from weekly_schedule order by event_day
> >
> > And the correct results are 1, 2, 4, 6.
> >
> > But if I run that same sql in a CF8 cfquery, scoping or not scoping
> > every variable, all I get is 1, 1, 1, 1.  This was working perfectly
> in CF
> > 4.5.
> >
> >         <cfquery name="get_days" datasource="#dsn#">
> >                 select distinct event_day from weekly_schedule order
> by
> > event_day
> >         </cfquery>
> >
> > I even put just the query and output commands on a separate page
> > and still get 1, 1, 1, 1.
> >
> >         <cfquery name="get_days" datasource="#dsn#">
> >                 select distinct event_day from weekly_schedule order
> by
> > event_day
> >         </cfquery>
> >
> >         <cfloop query="get_days">
> >                 <cfoutput>#get_days.event_day#</cfoutput><br />
> >         </cfloop>
> >
> > I just don't get it...
> >
> > Any more ideas, anyone? :o/
> >
> 
> you tried dumping the query?  <cfdump> will be your very best friend.
> 
> <cfdump var="#get_days#">
> 
> see if it's the query that's not returning the data you want, or if
> it's the loop that's outputting it incorrectly.
> 
> --
> Charlie Griefer




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291065
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to