Class: DBI::DBD::MSSQL::Type::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/dbd/mssql/types.rb

Overview

Represents a SQL NULL.

Class Method Summary collapse

Class Method Details

.parse(obj) ⇒ Object



17
18
19
20
# File 'lib/dbd/mssql/types.rb', line 17

def self.parse(obj)
    return nil if obj.is_a?(System::DBNull) or obj.to_s.match(/^null$/i)
    return obj
end