Wow.  That is wild! I have never experienced where a column is one data type
in a SQL server table and then changed to something else after CF pulls
it... (Except for NULL of course, there is no NULL in CF)

Beats me! I can't imagine why this is happening... But, just for kicks...
change that troublesome condition to:
and qu_82_tb_89_split_0_split_T_Ht = 142.20

and see if it gets you anything.


On Tue, Jul 8, 2008 at 3:52 PM, Richard White <[EMAIL PROTECTED]> wrote:

> thanks Qing, getting there now!!! after what you said i commented them out
> one by one and it only fails when it gets to the last column which is:
>
> and qu_82_tb_89_split_0_split_T_Ht = 142.2;
>
> so i then used a function i got from cflibs called queryColumnTypes and
> found that the column is a 'Real' data type. would this have something to do
> with it, i cannot work out why this is Real instead of a double or decimal -
> it is a float in the database when i first queried it, so does cf convert
> them to a 'real' and do you think this is the cause
>
> thanks
>
> >Hmm... interesting.  I thought about data types, but if a column is
> varchar
> >and you are not enclosing the data for it in single quotes, the query
> should
> >still return the rows. For example, if you did SELECT * FROM myTable WHERE
> >myRow = 1 and myRow is actually a VARCHAR column, all rows of myRow = 1
> >should still be returned. Probably not the best practice, but should
> work...
> >
> >Not sure how it behaves though if the value is a decimal stored in varchar
> >and you are not enclosing it in single quotes.  Might be worth a try.
> >
> >Here's a strategy: comment out  condition in your WHERE clause one at a
> >time.  This way you can see the exclusion of which condition gives you the
> >desired the result, then you can use that as a clue
> >
> >
> >
> >>>
>
> 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308785
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