Class: DBI::Type::Null

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

Overview

Represents a SQL NULL.

Direct Known Subclasses

DBD::Mysql::Type::Date, Boolean, Timestamp

Class Method Summary collapse

Class Method Details

.parse(obj) ⇒ Object



51
52
53
54
# File 'lib/dbi/types.rb', line 51

def self.parse(obj)
    return nil if obj.to_s.match(/^null$/i)
    return obj
end