Skip to content

Commit

Permalink
fix argument type and remove the quotes, so it can be recognized by t…
Browse files Browse the repository at this point in the history
…he database.

#5
  • Loading branch information
tsahi committed Jul 7, 2020
1 parent f59876d commit 4e5f0d1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
CREATE OR REPLACE PROCEDURE "CustOrdersOrders"(VCUSTOMERID IN Orders.OrderID%TYPE := 1, CUR_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
CREATE OR REPLACE PROCEDURE CustOrdersOrders(VCUSTOMERID IN Orders.CustomerID%TYPE := 1, CUR_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
AS

BEGIN
OPEN cur_OUT FOR
SELECT *
SELECT
OrderID,
OrderDate,
RequiredDate,
ShippedDate
FROM Orders
WHERE customerID = vCustomerId;
WHERE CustomerID = vCustomerId;
END;
/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE OR REPLACE PROCEDURE "GETCUSTOMERBYID" ( vCustomerId IN Customers.CustomerID%TYPE := 1, cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
CREATE OR REPLACE PROCEDURE GETCUSTOMERBYID( vCustomerId IN Customers.CustomerID%TYPE := 1, cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
AS

BEGIN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE OR REPLACE PROCEDURE "GETCUSTOMEROUT" ( vCustomerId IN Customers.CustomerID%TYPE, vName OUT Customers.COMPANYNAME%TYPE,cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
CREATE OR REPLACE PROCEDURE GETCUSTOMEROUT( vCustomerId IN Customers.CustomerID%TYPE, vName OUT Customers.COMPANYNAME%TYPE,cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
AS

BEGIN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE OR REPLACE PROCEDURE "GETCUSTOMERSANDPRODUCTSVIEW" (cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE,cur_Products OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
CREATE OR REPLACE PROCEDURE GETCUSTOMERSANDPRODUCTSVIEW(cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE,cur_Products OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
AS

BEGIN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE OR REPLACE PROCEDURE "GETCUSTOMERSVIEW" ( cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
CREATE OR REPLACE PROCEDURE GETCUSTOMERSVIEW( cur_OUT OUT PKGENTLIB_ARCHITECTURE.CURENTLIB_ARCHITECTURE)
AS

BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,13 @@ public void IsCacheUsed()
}

[TestMethod]
[Ignore]
public void CanDiscoverFeaturesWhileInsideTransaction()
{
using (DbConnection connection = db.CreateConnection())
{
connection.Open();
DbTransaction transaction = connection.BeginTransaction();
DbCommand storedProcedure = db.GetStoredProcCommand("CustOrdersOrders"); //there is no such sproc
DbCommand storedProcedure = db.GetStoredProcCommand("CustOrdersOrders");
storedProcedure.Connection = transaction.Connection;
storedProcedure.Transaction = transaction;

Expand Down

0 comments on commit 4e5f0d1

Please sign in to comment.