I'm having a really strange problem with blogcfm involving cfinsert.
I am using cfinsert inside a cfc to save a new comment.... and
sometimes, the comment text is getting munged. It seems to be totally
random.
In my page, I'm doing this:
<cfdump var="#form#">
<cfset results = application.blogcfm.saveComment(variables.blog_id, form)>
Then in the saveComment function (the relevant code):
<cfargument name="details" type="struct" required="yes">
<cfset var form = arguments.details
<cfif trim(form.comment) eq "">
<cfthrow message="form.comment is empty.">
</cfif>
<cfdump var="#arguments.details#">
<cfdump var="#form#">
<cfinsert tablename="BLOG_COMMENTS" datasource="#this.primarydb#">
The <cfthrow> statement is there for debugging.... that message never
gets thrown. The comment field in all three dumps shows the content
correctly.
However, sometimes, the text of the comment field does NOT Get put into
the database.
What could be going on here?
- Rick
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.1 - Release Date: 1/27/2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192135
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54