Calling a stored procedure with a complete recordset as parameter

One Star

Calling a stored procedure with a complete recordset as parameter

Hello,

i want to call a stored procedure with two parameters.

The first parameter is of type rowtype (that is a complete row of a table) and the second parameter is an out parameter of type varchar2.

In Oracle this looks like this:
create table TAB_TEST (ID varchar2(20), FIRSTNAME varchar2(50), LASTNAME varchar2(50));

create or replace procedure PRC_TEST (p_record TAB_TEST%rowtype, p_ID out TAB_TEST.ID%type) as
v_record TAB_TEST%rowtype;
begin
v_record := p_record;
v_record.ID := to_char(sysdate,'DD.MM.YYYY HH24:MI:SS');
insert into TAB_TEST values v_record returning ID into p_ID;
end;

A call of the procedure inserts a new record into the table TAB_TEST and delivers the value of the column ID back to the caller.

In Oracle this looks like this:
declare
v_record TAB_TEST%rowtype;
begin
v_record.FIRSTNAME := 'Wolli';
v_record.LASTNAME := 'Wodka';
PRC_TEST(v_record, v_record.ID);
dbms_output.put_line('ID: ' || v_record.ID);
end;

If the schema of my main row has exactly the structure of the table TAB_TEST how can i call the stored procedure an give the complete main row as first parameter?

In the basic settings of the component tOracleSP i can only define schema columns as parameters but not the whole row.
But in the column Type in the section parameters there is an option "RECORD SET". How to use this?


Many thanks in advance for any help.

Regards Hartmut
One Star

Re: Calling a stored procedure with a complete recordset as parameter

Hello,

has nobody an idea?

Is it not possible to have a complete row of a table as an input parameter of a stored procedure when calling this procedure from TOS?

Many thanks in advance for any help.

Regards Hartmut

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog