Skip to content

input binding with table of udt #169

@kumark92

Description

@kumark92

I'm trying to bind the input parameters of table of udt using OracleR2dbcTypes.arrayType("ADDRESS_TABLE") but getting error ORA-17059: Failed to convert internal representation: {CITY=Newyork}.
Does this support binding the table of udt

and I have this in Db
CREATE OR REPLACE TYPE ADDRESS_TYPE AS OBJECT (
CITY VARCHAR2(60)
);

CREATE OR REPLACE TYPE ADDRESS_TABLE AS TABLE OF ADDRESS_TYPE;

databaseClient.sql("SELECT * FROM TABLE(GET_Persons(:address_in))")
.bind("address_in", Parameters.in(OracleR2dbcTypes.arrayType("ADDRESS_TABLE"), new Object[]{Map.of("CITY", "Newyork")}))
.map((row,meta)) -> {
//process the result
}
.all()
.collectList();

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions