Here here!

Lanny

>>> [EMAIL PROTECTED] Tuesday, September 25, 2001 >>>
Hi.

Suppose you create an object like this

 <cfset z = StructNew()>
 <cfset z.foo = "bar">
 <cfa_contentobjectcreate
  datasource=...
  typeid=...
  objectid=...
  stProperties="#z#"
 >

Now suppose further that the type of object you are creating does not have
a property 'foo'. Then the create throws a property not registered error.
But as a side effect it still also creates an object in the database.

IMHO if contentobjectcreate fails for some reason the database insert
should be rolled back.

Cheers
Michiel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to