Created
November 8, 2009 22:01
-
-
Save ruckus/229493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/transfer/com/sql/SQLValue.cfc b/transfer/com/sql/SQLValue.cfc | |
index a027eee..521b7d1 100644 | |
--- a/transfer/com/sql/SQLValue.cfc | |
+++ b/transfer/com/sql/SQLValue.cfc | |
@@ -46,6 +46,7 @@ Mark Mandel 04/04/2008 Created | |
<cfscript> | |
var value = 0; | |
var type = property.getType(); | |
if(type eq "boolean") | |
{ | |
@@ -76,8 +77,7 @@ Mark Mandel 04/04/2008 Created | |
value = arguments.query.getString(arguments.property.getColumn()); | |
} | |
- if(arguments.query.wasNull()) | |
- { | |
+ if(arguments.query.wasNull() OR getNullable().hasNullValue(arguments.object.getClassName(), arguments.property.getName())) { | |
return getNullable().getNullValue(arguments.object.getClassName(), arguments.property.getName()); | |
} | |
diff --git a/transfer/com/sql/Nullable.cfc b/transfer/com/sql/Nullable.cfc | |
index 07e0010..d236745 100644 | |
--- a/transfer/com/sql/Nullable.cfc | |
+++ b/transfer/com/sql/Nullable.cfc | |
@@ -299,7 +299,7 @@ Mark Mandel 17/07/2006 Created | |
<!------------------------------------------- PRIVATE -------------------------------------------> | |
-<cffunction name="hasNullValue" hint="Checks to see if a property of an object has a null value" access="private" returntype="boolean" output="false"> | |
+<cffunction name="hasNullValue" hint="Checks to see if a property of an object has a null value" access="public" returntype="boolean" output="false"> | |
<cfargument name="className" hint="The className of the object to get the null value for" type="string" required="Yes"> | |
<cfargument name="propertyName" hint="The name of the property to check against" type="string" required="Yes"> | |
<cfscript> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment