|
1 | 1 | # node-oracledb 4.2 Documentation for the Oracle Database Node.js Add-on |
2 | 2 |
|
3 | | -*Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.* |
| 3 | +*Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.* |
4 | 4 |
|
5 | 5 | You may not use the identified files except in compliance with the Apache |
6 | 6 | License, Version 2.0 (the "License.") |
@@ -722,11 +722,12 @@ contexts. This value is undefined for non-Oracle errors and for |
722 | 722 | messages prefixed with NJS or DPI. |
723 | 723 |
|
724 | 724 | When [`batchErrors`](#executemanyoptbatcherrors) mode in |
725 | | -[`executeMany()`](#executemany) returns an array of Error objects in |
726 | | -the callback result parameter, each `offset` property is a 0-based |
727 | | -index corresponding to the `executeMany()` [binds |
728 | | -parameter](#executemanybinds) array, indicating which record could not |
729 | | -be processed. See [Handling Data Errors](#handlingbatcherrors). |
| 725 | +[`executeMany()`](#executemany) returns an array of Error objects in the |
| 726 | +callback result parameter, each `offset` property is a 0-based index |
| 727 | +corresponding to the `executeMany()` [binds parameter](#executemanybinds) array, |
| 728 | +indicating which record could not be processed. See [Handling Data |
| 729 | +Errors](#handlingbatcherrors). In node-oracledb 4.2, the maximum `offset` value |
| 730 | +was changed from (2^16)-1 to (2^32)-1. |
730 | 731 |
|
731 | 732 | ## <a name="oracledbclass"></a> 3. Oracledb Class |
732 | 733 |
|
@@ -3420,21 +3421,25 @@ while still letting valid data be processed. It can only be set |
3420 | 3421 | When *false*, the `executeMany()` call will stop when the first error |
3421 | 3422 | occurs. The callback [error object](#errorobj) will be set. |
3422 | 3423 |
|
3423 | | -When `batchErrors` is *true*, processing will continue even if there |
3424 | | -are data errors. The `executeMany()` callback error parameter is not |
3425 | | -set. Instead, an array containing an error per input data record will |
3426 | | -be returned in the callback `result` parameter. All valid data |
3427 | | -records will be processed and a transaction will be started but not |
3428 | | -committed, even if `autoCommit` is *true*. The application can |
3429 | | -examine the errors, take action, and explicitly commit or rollback as |
3430 | | -desired. |
| 3424 | +When `batchErrors` is *true*, processing will continue even if there are data |
| 3425 | +errors. The `executeMany()` callback error parameter is not set. Instead, a |
| 3426 | +property (also called `batchErrors`) will be returned in the callback `result` |
| 3427 | +parameter. The property holds an array of [Error objects](#errorobj). Each Error |
| 3428 | +`offset` indicates the row number of a data record that could not be |
| 3429 | +processed. All other valid data records will be processed and a transaction |
| 3430 | +will be started but not committed, even if `autoCommit` is *true*. The |
| 3431 | +application can examine the errors, take action, and explicitly commit or |
| 3432 | +rollback as desired. In node-oracledb 4.2, the maximum `offset` value |
| 3433 | +was changed from (2^16)-1 to (2^32)-1. |
3431 | 3434 |
|
3432 | 3435 | Note that some classes of error will always return via the |
3433 | 3436 | `executeMany()` callback error object, not as batch errors. No |
3434 | 3437 | transaction is created in this case. |
3435 | 3438 |
|
3436 | 3439 | The default value is *false*. |
3437 | 3440 |
|
| 3441 | +See [Handling Data Errors with `executeMany()`](#handlingbatcherrors) for examples. |
| 3442 | + |
3438 | 3443 | ###### <a name="executemanyoptbinddefs"></a> 4.2.7.3.3 `bindDefs` |
3439 | 3444 |
|
3440 | 3445 | ``` |
|
0 commit comments