Class: DBI::DBD::OCI8::BindType::DBIDate
- Inherits:
-
OCI8::BindType::OraDate
- Object
- OCI8::BindType::OraDate
- DBI::DBD::OCI8::BindType::DBIDate
- Defined in:
- lib/dbd/OCI8.rb
Overview
helper class to define/bind DBI::Date.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.decorate(b) ⇒ Object
526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/dbd/OCI8.rb', line 526 def decorate(b) def b.set(val) # convert val to an OraDate, # then set it to the bind handle. super(val && OraDate.new(val.year, val.month, val.day)) end def b.get() # get an Oradate from the bind handle, # then convert it to a DBI::Date. (val = super()) && DBI::Date.new(val.year, val.month, val.day) end end |