Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing stored procedure test for oracle #3269

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public String callStoredProcedure(@QueryParam("numA") int numA, @QueryParam("num
switch (dbKind) {
case "db2":
case "mssql":
case "oracle":
case "mariadb":
case "mysql":
List<LinkedCaseInsensitiveMap> addNumsResults = producerTemplate.requestBody(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ DROP TABLE aggregation
CREATE TABLE aggregation (id VARCHAR2(255) NOT NULL, exchange BLOB NOT NULL, version INT, PRIMARY KEY (id))
DROP TABLE aggregation_completed CASCADE CONSTRAINTS
CREATE TABLE aggregation_completed (id VARCHAR2(255) NOT NULL, exchange BLOB NOT NULL, version INT, PRIMARY KEY (id))

-- stored procedure
DROP TABLE ADD_NUMS_RESULTS
CREATE TABLE ADD_NUMS_RESULTS(id NUMBER GENERATED BY DEFAULT AS IDENTITY, value NUMBER NOT NULL, PRIMARY KEY(id))
DROP PROCEDURE ADD_NUMS
CREATE PROCEDURE ADD_NUMS (a IN NUMBER, b IN NUMBER) IS BEGIN insert into ADD_NUMS_RESULTS (id, value) VALUES (1, a + b); END;