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
`val` | The input value or variable to be used for an IN or IN OUT bind variable.
1139
1142
`dir` | The direction of the bind. One of the [Oracledb Constants](#oracledbconstants)`BIND_IN`, `BIND_INOUT`, or `BIND_OUT`.
1140
-
`type` | The datatype to be bound. One of the [Oracledb Constants](#oracledbconstants)`STRING`, `NUMBER`, `DATE` or `CURSOR`.
1141
-
`maxSize` | The maximum number of bytes that an OUT or IN OUT bind variable of type STRING can use. The default value is 200. The maximum limit is 32767.
1143
+
`type` | The datatype to be bound. One of the [Oracledb Constants](#oracledbconstants)`STRING`, `NUMBER`, `DATE`, `CURSOR` or `BUFFER`.
1144
+
`maxSize` | The maximum number of bytes that an OUT or IN OUT bind variable of type STRING or BUFFER can use. The default value is 200. The maximum limit is 32767.
1145
+
1146
+
In case of BUFFER type, when using Oracle Database 12c, in the init.ora file
1147
+
if MAX_STRING_SIZE parameter has a value of STANDARD, then the maximum size of
1148
+
BUFFER type is 4000. If MAX_STRING_SIZE parameter has a value of EXTENDED then
1149
+
the maximum size of BUFFER type is 32767. In earlier versions of Oracle
1150
+
Database, the maximum size of BUFFER type is 4000.
1142
1151
1143
1152
With OUT binds, where the type cannot be inferred by node-oracledb
1144
1153
because there is no input data value, the type defaults to `STRING`
@@ -2893,7 +2902,7 @@ connection.execute("INSERT INTO countries VALUES (:country_id, :country_name)",
2893
2902
```
2894
2903
2895
2904
For IN binds the direction must be `BIND_IN`. The type can be
2896
-
`STRING`, `NUMBER`or `DATE`, matching the data. The type `CURSOR`
2905
+
`STRING`, `NUMBER`, `DATE`or `BUFFER`, matching the data. The type `CURSOR`
2897
2906
cannot be used with IN binds.
2898
2907
2899
2908
### <a name="outbind"></a> 12.2 OUT and IN OUT Bind Parameters
@@ -2906,10 +2915,10 @@ properties is used.
2906
2915
The `dir` attribute should be `BIND_OUT` or `BIND_INOUT`.
2907
2916
2908
2917
For `BIND_INOUT` parameters, the `type` attribute should be `STRING`,
2909
-
`NUMBER`or `DATE`.
2918
+
`NUMBER`, `DATE`or `BUFFER`.
2910
2919
2911
2920
For `BIND_OUT` parameters the `type` attribute should be `STRING`,
0 commit comments