I should think so; problems occur with QoQ when it can't figure out the type
of data in a column  accurately. With the cfdirectory result query, there
will be no problems correctly identifying the 'name' column as a string
type.

Dominic

On 27/03/2008, Jim McAtee <[EMAIL PROTECTED]> wrote:
>
> I have a directory containing dated log files that I need to parse.  These
> have filenames like:
>
> reYYYYMMDD.log
>
> So I do a <cfdirectory> to pull a list of files:
>
> <cfdirectory
>   action="list"
>   directory="#mylogdir#"
>   filter="re????????.log"
>   name="dir">
>
> But I want exclude today's log from being processed.  This isn't possible
> using cfdirectory's filter, so I figured:
>
> <cfset today = dateFormat(now(), "yyyymmdd">
>
> <cfquery type="dbtype" name="dir">
> SELECT * FROM dir
> WHERE name <> 're#today#.log'
> </cfquery>
>
> Seems to work.  Should this type of QoQ, using the same query name to
> effectively delete rows, be safe in most circumstances?
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

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

Reply via email to