Let's try this:
1) Find:
<cfset arguments.null = "yes">
and comment it out (should exist only once in DataMgr)
2) Find:
<cfif Len(Trim(fieldval))>
Replace with:
<cfif Len(Trim(fieldval)) OR NOT sField.AllowNULLs>
Let me know if that works or not.
If it doesn't, could you send me the following:
1) The result of getDatabase()
2) The result of getVersion()
3) The result of getXml("bob") (replacing bob with the name of the
table you are using)
4) The code you are using when you get the error
I look forward to hearing how you get on.
Thanks!
Steve
On Fri, Oct 23, 2009 at 12:58 PM, tswone <tsw...@gmail.com> wrote:
> If a field is varchar (not null), and it is an empty string, Datamgr
> allows the empty string to be inserted.
>
> Is this correct, why wouldn't it see that the field is not null, and
> the value has a length of zero, then change it to a null so the record
> would not get inserted?
That is correct. Some people store empty strings in their database so
DataMgr does nothing to prevent this.
> It will do the insert, but will fail, but will then error saying:
>
> "Data Manager: A unique record could not be identified from the given
> data."
That looks like a bug (see steps outlined in my reply above).