src/Util/PDOX.php
function columnIsNull($fieldname, $source)
    {
        $column = self::describeColumn($fieldname, $source);
        if ( ! $column ) throw new \Exception("Could not find $fieldname");
        return U::get($column, "Null") == "YES";
    }
function columnIsNull($fieldname, $source)
    {
        $column = self::describeColumn($fieldname, $source);
        if ( ! $column ) throw new \Exception("Could not find $fieldname");
        return U::get($column, "Null") == "YES";
    }
function columnIsNull ( $ fieldname , $ source ) { $ column = self :: describeColumn ( $ fieldname , $ source ) ; if ( ! $ column ) throw new \ Exception ( "Could not find $fieldname" ) ; return U :: get ( $ column , "Null" ) == "YES" ; }
Check if a column is null

@param $fieldname The name of the column
@param $source Either an array of the column metadata or the name of the table

@return mixed Returns true / false if the columns exists and null if the column does not exist.
Check if a column is null