Class: DBI::Type::Null

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

Overview

Represents a SQL NULL.

Class Method Summary collapse

Class Method Details

.parse(obj) ⇒ Object



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

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