Oracle problem - escaping "&" in query

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Oracle problem - escaping "&" in query

    I am having an issue with utilizing the escape clause in CF against an Oracle
    db. I am trying to select data from a table where the "where" clause uses an
    "equal to" text string. Embedded in the text string is an ampersand "&". While
    building the query in a SQL tool, TOAD, I used the escape character "\" prior
    to the "&" and the select returned 5 rows of data which is correct. When
    inserted into CF however, the select returns only 3 rows, leaving off the two
    rows that have the matching "&" in them. Is there something in CF that is
    parsing the escape character incorrectly perhaps? How would CF look at this?


    spotted dog Guest

  2. Similar Questions and Discussions

    1. Drag and drop problem with "dragEnabled" and"allowMultipleSelection"
      Update 2, if it can help someone: Finally I don't manage the drag and drop by myself using DragManager.doDrag(...). Why? Because doing so if the...
    2. Problem with Query of Queries and "In" condition
      So is there a way to resolve this. I'm having a similar problem with query of queries?
    3. ColdFusion+cfquery+Oracle+CLOB+"Query of Query"
      Error message is: Query Of Queries runtime error. Unsupported SQL type "java.sql.Types.CLOB". My database table: RESMIGAZETEFIHRISTI: ...
    4. cfgrid inside a <cfoutput query="myQuery" group="GROUP">
      Is it possible to use a cfgrid inside a cfoutput with a query and a group. When I try do that I get the following error: INVALID_CHARACTER_ERR:...
    5. [PHP] Escaping the " ' " character
      >I need to print the following: with a slash. http://www.google.com/search?&q=php+single+quote+escape+site%3Aphp.net ...
  3. #2

    Default Re: Oracle problem - escaping "&" in query

    If you need a backslash to escape ampersands, use the cold fusion replace function to put it there for you.

    Details are in the cfml reference manual. If you don't have one, the internet does.
    Dan Bracuk 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