Fix setting of raw values on AQ descriptors.

This commit is contained in:
Anthony Tuininga 2016-03-04 10:02:25 -07:00
parent 0f3b0f17c0
commit d86cf980ba

6
AQ.c
View File

@ -559,7 +559,8 @@ static int DeqOptions_SetOCIAttr(
if (Environment_CheckForError(self->environment, status,
"DeqOptions_SetOCIAttr(): assign raw value") < 0)
return -1;
ociValue = (dvoid*) rawValue;
ociValue = (dvoid*) &rawValue;
valueLength = OCIRawSize(self->environment->handle, rawValue);
break;
};
status = OCIAttrSet(self->handle, OCI_DTYPE_AQDEQ_OPTIONS,
@ -743,7 +744,8 @@ static int MessageProperties_SetOCIAttr(
if (Environment_CheckForError(self->environment, status,
"MessageProperties_SetOCIAttr(): assign raw value") < 0)
return -1;
ociValue = (dvoid*) rawValue;
ociValue = (dvoid*) &rawValue;
valueLength = OCIRawSize(self->environment->handle, rawValue);
break;
};
status = OCIAttrSet(self->handle, OCI_DTYPE_AQMSG_PROPERTIES,