Skip to content

Instantly share code, notes, and snippets.

@ruckus
Created November 8, 2009 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruckus/229493 to your computer and use it in GitHub Desktop.
Save ruckus/229493 to your computer and use it in GitHub Desktop.
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