Updating Oracle Clob field

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

  1. #1

    Default Updating Oracle Clob field

    I am having some trouble updating an oracle db that has a clob field, this is
    the part of the query that is getting the form data:
    <cfqueryparam cfsqltype="cf_sql_clob"
    value="#trim(form.additional_information_fr)#">

    When I dump the form variables it is getting passed over ok, but when I output
    the update SQL statement I am getting a '?' next to the field and it inserts a
    blank string.

    I also tried this: <cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#trim(form.additional_information)#"> which works as long as the data is
    less then 4000 charcters, I know there are issues with drivers and have
    incorporated the latest driver release from adobe: <a target=_blank
    class=ftalternatingbarlinklarge
    href="http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=1a3c2ad0">[url]http://w[/url]
    ww.adobe.com/cfusion/knowledgebase/index.cfm?id=1a3c2ad0</a>

    Still no luck, anyone else encounter issues with Oracle and Clob fields that
    could shed some light on the situation for me. I've been searching the web all
    day and tried a few different solutions without any success.

    thomascraig Guest

  2. Similar Questions and Discussions

    1. #39103 [Opn]: Oracle CLOB Charset Incorrect
      ID: 39103 User updated by: jhtpeter at gmail dot com Reported By: jhtpeter at gmail dot com Status: Open Bug Type: ...
    2. Oracle CLOB Columns Failing With ColdFusion 7
      I am using ColdFusion 7 Enterprise, updater 1 with DataDirect version 3.4 drivers and Oracle 8i. ColdFusion 7 is returning no data for CLOB...
    3. Oracle CLOB Truncation > 64K
      We have an update and insert query for a large text field (Oracle CLOB). When we run the query on long text, it truncates the excess. ...
    4. Oracle CLOB Update in CF
      We have a form with two textareas. The action page updates two Oracle clob fields with the content from the textareas. If at least one of the...
    5. Oracle CLOB using DBI
      Does someone have a working code sample of Perl/DBI returning a CLOB column from Oracle. Here is what I came up with, I counld not get ORA_CLOB...
  3. #2

    Default Re: Updating Oracle Clob field

    Just curious, do you have <b>Enable long text retrieval (CLOB)</b> enabled in your datasource's advanced settings in CF admin?

    Phil
    paross1 Guest

  4. #3

    Default Re: Updating Oracle Clob field

    Which DBMS are you using?
    Matrix16 Guest

  5. #4

    Default Re: Updating Oracle Clob field

    This is a codesnippet from and update action where we enter data into a clob
    field in Oracle.

    <cfif IsDefined("Form.NEWS_STORY") AND #Form.NEWS_STORY# NEQ "">
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#Form.NEWS_STORY#">
    <cfelse>
    NULL
    </cfif>

    Looking at it the query param is the same as yours so i guess this isnt much
    help for you.



    Matrix16 Guest

  6. #5

    Default Re: Updating Oracle Clob field

    Matrix16,

    Yes this method works up to 4000 characters as soon as I go 4001 I get an error.
    thomascraig 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