Pass the type code associated with the object type, as it might be something

other than OCI_TYPECODE_OBJECT.
This commit is contained in:
Anthony Tuininga 2016-02-22 09:53:35 -07:00
parent d03854ccfe
commit 4b4f2ceb18

View File

@ -339,7 +339,7 @@ static int ObjectVar_SetType(
// create the object instance
status = OCIObjectNew(self->connection->environment->handle,
self->connection->environment->errorHandle,
self->connection->handle, OCI_TYPECODE_OBJECT,
self->connection->handle, self->objectType->typeCode,
self->objectType->tdo, NULL, OCI_DURATION_SESSION, TRUE,
&instance);
if (Environment_CheckForError(self->connection->environment, status,