Retrieving long text (CLOB) using CFQuery
I am using C开发者_开发问答FQuery
to retrieve the CLOB field from Oracle DB. If the CLOB filed contains the Data less than ~ 8000, then I can see <CFQuery >
retrieved the value (<cfdump>
the o/p), however If the value in CLOB field size is more than 8000 chars, then its not retrieving the value. in <cfdump>
i can see the query retrieved as 'empty String' though the value exists in Oracle DB.
I am using the Oracle Driver in CFadim console, enabled 'Enable long text retrieval (CLOB).' and 'Enable binary large object retrieval (BLOB). '
Set 'Long Text Buffer (chr)' and 'Blob Buffer(bytes) ' values to 6400000
Any suggestions to retrieve the full text?
Did you enable CLOB fields in the datasource configuration? If not make sure you do.
- Go to the coldfusion administrator
- select datasources
- edit your datasource
- click on advanced settings
- check the "enable clob"
- save datasource
You shouldn't need to restart CF for this.
Don't know if you find the solution for your problem but for me it's a driver issue: then you need to update the jdbc driver. Look at this technote Updated DataDirect JDBC drivers (version 3.4)
精彩评论