Skip to content

Calling SP with XMLTYPE types #165

Open
@metalpalo

Description

@metalpalo

Hi guys, I would like to migrate from regular jdbc call stored procedure to r2dbc, problem is that original code use XmlType as input and output parameter is possible to rewrite it to work it? my original code is:

SQLXML inputXml = null;
      SQLXML outputXml = null;

Connection connection = callableStatement.getConnection();
        inputXml = connection.createSQLXML();
        inputXml.setString(input);//input is xml as string

        callableStatement.setSQLXML(1, inputXml);
        callableStatement.setString(2, invocationId);
        callableStatement.registerOutParameter(3, OracleTypes.VARCHAR);
        callableStatement.registerOutParameter(4, Types.SQLXML, "SYS.XMLTYPE");

        callableStatement.execute();

        outputXml = callableStatement.getSQLXML(4);

thanks

Metadata

Metadata

Assignees

No one assigned

    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