I have the following function
Code: Select all
CREATE OR REPLACE FUNCTION getcategories() RETURNS refcursor AS
DECLARE cur_OUT refcursor;
BEGIN
OPEN cur_OUT FOR
SELECT wc.*,'' as CATEGORY
FROM "WORKFLOWCATEGORY" WC
Where wc."WORKFLOWCATEGORY_ID" is null
order by wc."SHORTDESCRIPTION";
RETURN cur_OUT;
END;
LANGUAGE 'plpgsql'
Code: Select all
Database db = DatabaseFactory.CreateDatabase();
string sqlCommand = "GETCATEGORIES";
DbCommand dbCommand = db.GetStoredProcCommand(sqlCommand);
DataSet ds = db.ExecuteDataSet(dbCommand);
cursor "" does not exist
What Am I doing wrong?? Please Help
using devart trial version - devart.Data.dll version is 5.0.81.0
TIA