Module: OCI8::BindType

Defined in:
lib/oci8/object.rb,
lib/oci8/bindtype.rb,
lib/oci8/datetime.rb,
ext/oci8/oci8lib.c,
ext/oci8/ocinumber.c

Defined Under Namespace

Modules: Util Classes: Base, BasicNumberType, BigDecimal, CLOB, Date, DateTime, Float, Integer, IntervalDS, IntervalYM, LocalDateTime, LocalTime, Long, LongRaw, NamedType, Number, Object, OraDate, OraNumber, RAW, Rational, String, Time, UTCDateTime, UTCTime

Constant Summary collapse

Mapping =
{}

Class Method Summary collapse

Class Method Details

.default_timezoneObject

call-seq:

OCI8::BindType.default_timezone -> :local or :utc

Returns the default time zone when using Oracle 8.x client. The value is unused when using Oracle 9i or upper client.

See also: OCI8::BindType::Time



14
15
16
# File 'lib/oci8/datetime.rb', line 14

def self.default_timezone
  OCI8::BindType::Util.default_timezone
end

.default_timezone=(tz) ⇒ Object

call-seq:

OCI8::BindType.default_timezone = :local or :utc

Sets the default time zone when using Oracle 8.x client. The value is unused when using Oracle 9i or upper client.

See also: OCI8::BindType::Time



25
26
27
# File 'lib/oci8/datetime.rb', line 25

def self.default_timezone=(tz)
  OCI8::BindType::Util.default_timezone = tz
end