class DBI::DBD::OCI8::BindType::DBITimestamp


= ::DBI::DBD::OCI8::BindType::DBITimestamp
To fetch all Oracle’s DATE columns as DBI::Timestamp:
helper class to define/bind DBI::Timestamp.

def get()

def get()
  # get an Oradate from the bind handle,
  # then convert it to a DBI::Timestamp.
  val = super()
  return nil if val.nil?
  DBI::Timestamp.new(val.year, val.month, val.day, val.hour, val.minute, val.second)
end

def set(val)

def set(val)
  # convert val to an OraDate,
  # then set it to the bind handle.
  super(val && OraDate.new(val.year, val.month, val.day,
                           val.respond_to?(:hour) ? val.hour : 0,
                           val.respond_to?(:min) ? val.min : 0,
                           val.respond_to?(:sec) ? val.sec : 0))
end