Skip to content

Commit

Permalink
fix(Null): Fixes for full null support
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdebruin authored Oct 12, 2021
1 parent 32b5dec commit 963d79e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/Query/QueryUtils.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ component displayname="QueryUtils" accessors="true" {
* @return boolean
*/
public boolean function isNotExpression( required any value ) {
if ( isNull( arguments.value ) ) {
return true;
}
return isSimpleValue( arguments.value ) ||
isArray( arguments.value ) ||
!structKeyExists( arguments.value, "isExpression" );
Expand All @@ -146,6 +149,9 @@ component displayname="QueryUtils" accessors="true" {
* @return boolean
*/
public boolean function isBuilder( required any value ) {
if ( isNull( arguments.value ) ) {
return false;
}
return !isSimpleValue( arguments.value ) &&
!isArray( arguments.value ) &&
structKeyExists( arguments.value, "isBuilder" );
Expand Down

0 comments on commit 963d79e

Please sign in to comment.