Module: OCI8::Util
- Defined in:
- lib/oci8/check_load_error.rb,
ext/oci8/util.c
Class Method Summary collapse
-
.check_load_error(exc) ⇒ Object
case RUBY_PLATFORM.
-
.dll_path ⇒ String
Returns the full path of Oracle client library used by the current process.
Class Method Details
.check_load_error(exc) ⇒ Object
case RUBY_PLATFORM
90 91 92 93 94 95 96 |
# File 'lib/oci8/check_load_error.rb', line 90 def self.check_load_error(exc) check_os_specific_load_error(exc) case exc. when /^OCI Library Initialization Error/ # TODO end end |
.dll_path ⇒ String
Returns the full path of Oracle client library used by the current process.
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());
}
|