[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

QoQ error

Posted on 2004-10-07
2
Medium Priority
?
155 Views
Last Modified: 2013-12-24
I am doing a query of a query and getting the following error

______
Error Executing Database Query.  

Query Of Queries runtime error.

Query Of Queries runtime error.
Unrecognized java type  
_____

The query is simple
<cfquery dbtype="query" name="qTest">
SELECT *
FROM test
</cfquery>

When I do a dump of test it is definately a query..

The query is returned from a CFC - test = objFileSystem.getDirectoryTreeAsQuery(application.setting.pathRoot, true );

The code that creates query (just incase) part of it anyway, is:

<cfscript>
            arguments.depth = arguments.depth + 1;

            objFolderCollection = getSubFolderCollection( arguments.directory );
            for ( objFolder in objFolderCollection )
            {
                  arguments.level = arguments.level + 1;
                  queryAddRow( this.result );
                  querySetCell( this.result, "path", objFolder.path );
                  querySetCell( this.result, "name", objFolder.name );
                  querySetCell( this.result, "level", arguments.level );
                  querySetCell( this.result, "depth", arguments.depth );
                  querySetCell( this.result, "dateCreated", objFolder.dateCreated );
                  if ( arguments.showDetail )
                  {
                        querySetCell( this.result, "dateLastAccessed", objFolder.dateLastAccessed );
                        querySetCell( this.result, "dateLastModified", objFolder.dateLastModified );
                        querySetCell( this.result, "size", objFolder.size );
                  }
                  myDirectory = arguments.directory & objFolder.name & "\";
                  // Traverse
                  traverseDirectory( directory = myDirectory, level = arguments.level, depth = arguments.depth );
            }
            </cfscript>
0
Comment
Question by:Tacobell777
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
CFDevHead earned 2000 total points
ID: 12259717
you probally need to do something like this
thisQuery=objFolderCollection.TheQuery

I can't really tell what you are doing from your code.
0
 
LVL 17

Author Comment

by:Tacobell777
ID: 12262965
yes I think you are right, can't test right now - I guess thats what yu get on a Friday afternoon, stupid mistakes ;-))
But I reckon you are right.

Cheers, will test on monday.
0

Featured Post

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
What You Need to Know when Searching for a Webhost Provider
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question