CF.query problems with CF8

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default CF.query problems with CF8

    Hello, in migration to CF8 (from CF7) when we use :

    CF.query("xx","DELETE FROM TEST WHERE TR=1"); for example

    CF failed with
    java.lang.ClassCastException: coldfusion.sql.CFNoResultSetTable cannot be cast
    to coldfusion.sql.QueryTable
    This query run good under CF7 but failed under CF8

    When the query is a "SELECT ..." no problems under CF8

    Seb

    sebFrance Guest

  2. Similar Questions and Discussions

    1. query db problems
      Got this error and im not really sure what to do next link <a target=_blank class=ftalternatingbarlinklarge...
    2. Problems with Recordset (Query) in Dreamweaver BindingsPanel
      Coldfusion Gurus- I keep getting this error when I try to make a connection to my database using the Dreamweaver Bindings Panel: "There are no...
    3. problems with evaluate-function and " ' " in query
      hello. strange problem. let's say i have the following variable: cfset content = "let's rock" if i make an insert-query into a ms sql server...
    4. Dymanic Query and CFIF Problems
      Problem: I have an application where I have one access table with the following fields: autonum, cca_index, cca_category, wt_index, wt_category. ...
    5. MySQL query problems
      Hi, Not sure if the problem here is PHP or MySQL, but here we go. I am trying to do two queries on a database - one after the other, but the...
  3. #2

    Default Re: CF.query problems with CF8

    CF.query does not seem to tell the difference between SELECT query which
    returns a ResultSet as the executeQuery while INSERT, UPDATE or DELETE returns
    an int.
    The problem must be in the decision to use either or executeUpdate in
    executeQuery method CF.query (in CF8)
    Thank you for all.

    sebFrance Guest

  4. #3

    Default Re: CF.query problems with CF8

    Hello,
    I must clarify that the code using the CF.query is a .asr in SSAS
    Thanks
    sebFrance Guest

  5. #4

    Default Re: CF.query problems with CF8

    Hello,

    Until the problem is corrected, I applied the following solution, which is not
    very elegant but quite effective:

    As CF.query tries to return a Result Set I simply turned the query above

    CF.query ( "xx", "DELETE FROM TEST WHERE TR = 1");
    In
    CF.query ( "xx", "SELECT 1 AS TOTAL DELETE FROM TEST WHERE TR = 1 ");

    This formula returning a resultset, CF.query in this case content.

    Séb

    sebFrance 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