Query of Queries of ArrayNew?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Query of Queries of ArrayNew?

    I am very familiar with query of queries. But I think, maybe, I just
    realized, you cannot create (in MX 6.1) a query of queries of a query that was
    created using queryNew function? Can't be? Please? Any workarounds other
    than ANOTHER queryNew kludge? I get an error ... Query Of Queries runtime
    error.</b><br> <br><b>Query Of Queries runtime error.</b><br> Unsupported
    Numeric type conversion in Query of Queries. And now this messge board is
    crashing! Thanks, Robert

    cf_code_warrior Guest

  2. Similar Questions and Discussions

    1. Need Help with Query of Queries
      I have the query "almost" there but I'm not sure exactly how to accomplish this. I need all recrods meeting the criteria from the AppliedLicense...
    2. Query of Queries
      I think that we're using 5 on both environments (not checked that though - they shouldn't be different anyway)... It seems that i've fixed it......
    3. 2 queries to 1 query
      Hello, Can somebody help me to combine these two queries into one query. <cfquery datasource="#DATAS#" name="getMainNav"> SELECT * FROM...
    4. Query of Queries in 7.0
      I am running MX 6.1 and was wondering of the QofQ problem still exists (in the new version, 7.0) where CF tries to guess at the column datatype...
    5. Query of Queries on query New type query
      In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could...
  3. #2

    Default Re: Query of Queries of ArrayNew?

    I have found this to be true as well. Nor can you query of query a result set
    that is stored in application or session scope. From my experience, the query
    result must have been generated by cfquery, cfhttp, cfldap, etc.... and have
    been physically run in the same page request as the query of query. <sigh>

    TA-Selene Guest

  4. #3

    Default Re: Query of Queries of ArrayNew?

    > I have found this to be true as well. Nor can you query of query a result set
    > that is stored in application or session scope. From my experience, the query
    > result must have been generated by cfquery, cfhttp, cfldap, etc.... and have
    > been physically run in the same page request as the query of query. <sigh>
    This is not the case at all. I do both, on a daily basis: QoQ a
    queryNew()-created query which is stored in the application scope.

    The OP's problem sounds like they've got nulls somewhere inconvenient to CF
    (which would be almost anywhere, given how inconvenient CF finds nulls).

    That said, I have also found one has to muck around with the
    queryNew()-contrived query to get it to have the correct datatypes for its
    columns - CF has to guess: something else it's pretty piss poor at.

    The bottom line is... yes, you're right: you're going to have to kludge
    about the place to get it to work.

    Or throw your hands in the air in despair and effect your results some way
    other than QoQ. Which is what I find myself doing in 6.1 quite a lot.

    CF7 should be better... I was on the beta program (surely that's not
    breaking the NDA?) and I tend to complain when I don't get my own way, if
    you know what I mean ;-)

    --

    Adam
    Adam Cameron Guest

  5. #4

    Default Re: Query of Queries of ArrayNew?

    Adam Thanks for giving this old git a laugh for today. I too was on the 7
    (Blackstone) beta. Have yet to deploy it to production for a) fear and b)
    laziness. Oh and C) not bought a production license! I ended up doing another
    array. Sod it! It was a 10 second workaround. Yes, the application scoped
    var that I start with has nulls in it. But,. come on, that should not have to
    work like the IRS. Anyhoooooo, got my problem solved for that hour. Did YOU
    go production on 7.0? Might even go there this week. Robert

    cf_code_warrior Guest

  6. #5

    Default Re: Query of Queries of ArrayNew?

    > Did YOU
    > go production on 7.0?
    Nope.

    Having been bitten on the bum quite profoundly by adopting 6.0 immediately
    and then having to uncode a lot of work-arounds once 6.1 appeared, I
    personally am going to hold off until 7.1.

    That said, I don't make all the decisions around here, and I think the boss
    wants to get his teeth into <cfdocument>, so we might have to jumps sooner
    than that.

    --

    Adam
    Adam Cameron Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139