Class: OCIRowid

Inherits:
OCIDescriptor show all
Defined in:
ext/oci8/oci8.c

Instance Method Summary collapse

Methods inherited from OCIDescriptor

#attrGet, #attrSet, #free, new

Instance Method Details

#to_sObject



150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'ext/oci8/oci8.c', line 150

static VALUE oci8_rowid_to_s(VALUE self)
{
  oci8_handle_t *h;
  char buf[64];
  ub2 buflen = sizeof(buf);
  sword rv;

  Get_Handle(self, h);
  rv = OCIRowidToChar(h->hp, (text*)buf, &buflen, h->errhp);
  if (rv != OCI_SUCCESS)
    oci8_raise(h->errhp, rv, NULL);
  return rb_str_new(buf, buflen);
}