CFTALK.COM>



Login  |  Register

CFMX - Query Of Queries runtime error

clearin
1 post
Feb 27, 2006
12:35 PM
It appears that I'm not the only one having the CFMX 7 Query of Queries problem. However I have yet to see any solutions on the web. Here's the problem:

I have created a structure and then converted it into a recordset so I can select by specific criteria. However, I can not figure how in the world to add arguments to limit the select statement, for everything I do throws "Query Of Queries runtime error.
Unsupported Numeric type conversion in Query of Queries. "


<CFQUERY NAME="GetMarketingEvents" dbtype="query>
SELECT * FROM EventsRecordset
Where EventType = 1
</cfquery"">

Can anyone offer any guidance? Workarounds? Solutions? This sucks! Thanks.

Last Edited clearin on 27-Feb-2006 12:37 PM

clearin
2 posts
Feb 27, 2006
12:55 PM
I read on mx.blogs the following:

Apparently, when doing a Query of Query against a query created using the QueryNew() function, CFMX guesses what the datatype is for each column based on the data in the first row.

So if your Query of Queries sees an integer in the first column of the first row, and then sees a string in the first column of the second row, CFMX will throw an error that says it cannot convert the datatype to another datatype.

Interesting, I explored that workaround, but it didn't help.

sdizier
6 posts
Feb 27, 2006
5:31 PM
Have you tried passing the 1 as a string?

WHERE EventType = '1'

----------
MyWebCaster.com

xenden
1 post
Apr 02, 2006
10:04 PM
same thing is happening to me. Really strange. I'm building a query in a cfc, works fine, pass it back, try to add a column, and errrt-
Query Of Queries runtime error. Query Of Queries runtime error.
Unsupported SQL type "java.sql.Types.UNKNOWN"

Doesn't matter if I populate the array before adding it as a column with strings, ints, javacasted values... 7.1 latest hotfixes (this isn't listed as an issue in any of them).

Must be somesorta hard-to-reproduce error. If I figure it out I'll holler.


CFTalk :: Tip Of The Week :: Polls :: Book Of The Month :: CFStore
Another online store by CoyoteDirect.com  ~ Adventure Friendly