isLogicalDeletion()

1 view
Skip to first unread message

Adam

unread,
Jan 8, 2011, 1:20:04 PM1/8/11
to DataMgr
There is a problem with the isLogicalDeletion method. It currently
always returns false - even when the table is setup for logical
deletion. The error is on line 2504 of _DataMgr.cfc. The AND should
be an OR and the whole loop could be written as follows:

Starting Line: 2499
<cfloop index="ii" from="1" to="#ArrayLen(fields)#" step="1">
<cfif StructKeyExists(fields[ii],"Special") AND fields[ii].Special
EQ "DeletionMark"
AND ( fields[ii].CF_DataType EQ "CF_SQL_BIT"
OR fields[ii].CF_DataType EQ "CF_SQL_DATE"
OR fields[ii].CF_DataType EQ "CF_SQL_DATETIME")>
<cfset result = true>
<cfbreak>
</cfif>
</cfloop>

Thanks for all your hard work!
-adam

Steve Bryant

unread,
Jan 8, 2011, 2:55:00 PM1/8/11
to dat...@googlegroups.com
Wow! That is really embarrassing.

Thanks for the catch and fix!

Steve

Reply all
Reply to author
Forward
0 new messages