You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message << "Input array has object with invalid type at index " << i << ", all object must be of type 'string' which is the type of the first element";
227
227
baton->error = newstd::string(message.str());
228
-
return;
229
-
}
228
+
return;
229
+
}
230
230
231
-
String::Utf8Value utfStr(currVal);
231
+
String::Utf8Value utfStr(currVal);
232
232
233
233
// Copy this string onto the strArr (we put \0 in the beginning as this is what strcat expects).
message << "Input array has object with invalid type at index " << i << ", all object must be of type 'number' which is the type of the first element";
260
260
baton->error = newstd::string(message.str());
261
-
return;
261
+
return;
262
262
}
263
263
264
264
// JS numbers can exceed oracle numbers, make sure this is not the case.
265
265
double d = currVal->ToNumber()->Value();
266
-
if (d > 9.99999999999999999999999999999999999999*std::pow(10, 125) || d < -9.99999999999999999999999999999999999999*std::pow(10, 125)) {
266
+
if (d > 9.99999999999999999999999999999999999999*std::pow(10, 125) || d < -9.99999999999999999999999999999999999999*std::pow(10, 125)) {
267
267
std::ostringstream message;
268
268
message << "Input array has number that is out of the range of Oracle numbers, check the number at index " << i;
269
269
baton->error = newstd::string(message.str());
270
-
return;
271
-
}
270
+
return;
271
+
}
272
272
273
-
// Convert the JS number into Oracle Number and get its bytes representation
274
-
oracle::occi::Number n = d;
273
+
// Convert the JS number into Oracle Number and get its bytes representation
0 commit comments