CREATE TABLE MULE_NAMES (ID INT,COUNTRY CHAR(20), NAME CHAR(20),LASTNAME CHAR(20),PRIMARY KEY(ID) )
CREATE OR REPLACE PROCEDURE db_dbq2c_co_get_pubintdata @i_spreturn integer OUTPUT, @i_spmessage char(250) OUTPUT AS DECLARE @i_returncode integer, @i_error integer BEGIN TRANSACTION INSERT INTO MULE_NAMES VALUES(rand() * 1000, 'USA', 'John', 'Denver') COMMIT TRANSACTION select @i_spreturn = cast(rand() * 10000 as NUMERIC(6,0)) select @i_spmessage = cast(rand() as varchar) return @i_spreturn
<db:stored-procedure doc:name="Stored procedure" doc:id="be5bc194-1024-4cb6-ad76-62d50c7659ba" config-ref="Database_ConfigBean" fetchSize="0">
<db:sql>{ call db_dbq2c_co_get_pubintdata(:i_spreturn, :i_spmessage)}</db:sql>
<db:output-parameters>
<db:output-parameter key="i_spreturn" type="INTEGER" />
<db:output-parameter key="i_spmessage" type="CHAR" />
</db:output-parameters>
</db:stored-procedure>
curl 127.0.0.1:8081/poc
select * from MULE_NAMES
001116927

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.