Skip to content

Commit

Permalink
Sql tests with external oracle database fail #3256
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek committed Nov 5, 2021
1 parent 5f666c7 commit 02dec0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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;

0 comments on commit 02dec0a

Please sign in to comment.