Skip to content

Commit 38c01b2

Browse files
committed
[=] Fix typo
1 parent 7ad9fc0 commit 38c01b2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int Connection::SetValuesOnStatement(oracle::occi::Statement* stmt, ExecuteBaton
226226
case VALUE_TYPE_ARRAY:
227227
stmt->setDatabaseNCHARParam(index, true);
228228
arrParam = (arrayParam_t*)val->value;
229-
stmt->setDataBufferArray(index, arrParam->value, arrParam->elemetnsType, arrParam->collectionLength, &arrParam->collectionLength, arrParam->elementsSize, arrParam->elementLength, NULL, NULL);
229+
stmt->setDataBufferArray(index, arrParam->value, arrParam->elementsType, arrParam->collectionLength, &arrParam->collectionLength, arrParam->elementsSize, arrParam->elementLength, NULL, NULL);
230230
break;
231231
case VALUE_TYPE_OUTPUT:
232232
outParam = static_cast<OutParam*>(val->value);

src/executeBaton.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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];

src/executeBaton.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ struct value_t {
4343
};
4444

4545
struct arrayParam_t {
46-
// This will hold the info needed for binding vectors values
46+
// This will hold the info needed for binding array values
4747
void* value;
4848
ub4 collectionLength;
4949
sb4 elementsSize; // The size of each element in the array
5050
ub2* elementLength; // An array that holds the actual length of each element in the array (in case of strings)
51-
oracle::occi::Type elemetnsType;
51+
oracle::occi::Type elementsType;
5252
};
5353

5454
struct output_t {

0 commit comments

Comments
 (0)