Ask a Question related to Coldfusion Database Access, Design and Development.
-
thomascraig #1
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
-
#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: ... -
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... -
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. ... -
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... -
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... -
paross1 #2
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
-
-
Matrix16 #4
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
-
thomascraig #5
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



Reply With Quote

