Skip to content

Commit 8e8a593

Browse files
Added VECTOR to array example
1 parent e55e3a9 commit 8e8a593

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,16 @@ Note that `double[]`, `float[]`, and `byte[]` can NOT be passed directly to
962962
`Statement.bind(int/String, Object)` when binding `VECTOR` data. The R2DBC
963963
Specification defines `ARRAY` as the default mapping for Java arrays.
964964

965+
A `VECTOR` column or OUT parameter is converted to `oracle.sql.VECTOR` by
966+
default. The column or OUT parameter can also be converted to `double[]`,
967+
`float[]`, or `byte[]` by passing the corresponding array class to the `get`
968+
methods:
969+
```java
970+
float[] getVector(io.r2dbc.Readable readable) {
971+
return readable.get("vector", float[].class);
972+
}
973+
```
974+
965975
#### Returning VECTOR from DML
966976
Returning a VECTOR column with `Statement.returningGeneratedValues(String...)`
967977
is not supported due to a defect in the 23.4 release of Oracle JDBC. Attempting

0 commit comments

Comments
 (0)