Module: OCI8::Util

Defined in:
lib/oci8/check_load_error.rb,
ext/oci8/util.c

Class Method Summary collapse

Class Method Details

.check_load_error(exc) ⇒ Object

case RUBY_PLATFORM


137
138
139
140
141
142
143
# File 'lib/oci8/check_load_error.rb', line 137

def self.check_load_error(exc)
  check_os_specific_load_error(exc)
  case exc.message
  when /^OCI Library Initialization Error/
    # TODO
  end
end

.dll_pathString

Returns the full path of Oracle client library used by the current process.

Returns:


52
53
54
55
56
57
58
59
# File 'ext/oci8/util.c', line 52

static VALUE dll_path(VALUE module)
{
    const char *path = oci8_dll_path();
    if (path == NULL) {
        return Qnil;
    }
    return rb_external_str_new_with_enc(path, strlen(path), rb_filesystem_encoding());
}