@@ -47,9 +47,9 @@ void ExecuteBaton::ResetValues() {
4747 break ;
4848 case VALUE_TYPE_ARRAY:
4949 arrayParam_t* arrParam = (arrayParam_t*)val->value ;
50- if (arrParam->value != NULL && arrParam->elemetnsType == oracle::occi::OCCI_SQLT_STR)
50+ if (arrParam->value != NULL && arrParam->elementsType == oracle::occi::OCCI_SQLT_STR)
5151 delete (char *)arrParam->value ;
52- else if (arrParam->value != NULL && arrParam->elemetnsType == oracle::occi::OCCI_SQLT_NUM)
52+ else if (arrParam->value != NULL && arrParam->elementsType == oracle::occi::OCCI_SQLT_NUM)
5353 delete (char *)arrParam->value ;
5454
5555 if (arrParam->elementLength != NULL )
@@ -192,7 +192,7 @@ void ExecuteBaton::GetVectorParam(ExecuteBaton* baton, arrayParam_t* arrParam, L
192192 arrParam->collectionLength = 0 ;
193193 arrParam->elementsSize = 0 ;
194194 arrParam->elementLength = new ub2[0 ];
195- arrParam->elemetnsType = oracle::occi::OCCIINT;
195+ arrParam->elementsType = oracle::occi::OCCIINT;
196196 return ;
197197 }
198198
@@ -202,7 +202,7 @@ void ExecuteBaton::GetVectorParam(ExecuteBaton* baton, arrayParam_t* arrParam, L
202202
203203 // String array
204204 if (val->IsString ()) {
205- arrParam->elemetnsType = oracle::occi::OCCI_SQLT_STR;
205+ arrParam->elementsType = oracle::occi::OCCI_SQLT_STR;
206206
207207 // Find the longest string, this is necessary in order to create a buffer later.
208208 int longestString = 0 ;
@@ -249,7 +249,7 @@ void ExecuteBaton::GetVectorParam(ExecuteBaton* baton, arrayParam_t* arrParam, L
249249
250250 // Integer array.
251251 else if (val->IsNumber ()) {
252- arrParam->elemetnsType = oracle::occi::OCCI_SQLT_NUM;
252+ arrParam->elementsType = oracle::occi::OCCI_SQLT_NUM;
253253
254254 // Allocate memory for the numbers array, Number in Oracle is 21 bytes
255255 unsigned char * numArr = new unsigned char [arr->Length () * 21 ];
0 commit comments