S
Steve
Hi,
I am using the .NET Framework data provider for Oracle
and can't get anything to work when using Oracle
Functions. Couple of quesitons: 1) Do I have to declare
the output as REF CURSOR? If I don't then the error says
there is no store proc with this name? If I do, then I
always get the same error about "invalid argument or type
for input params..".
ANY HELP??
FUNCTION customer_details(dealer_id_in config.ids)
RETURN config.GenRfcTyp
IS
v_rfc config.GenRfcTyp;
BEGIN
OPEN v_rfc FOR
SELECT DISTINCT customer_id uc_id,
customer.name(customer_id)
customer_name
FROM dealer_customers
WHERE dealer_id = dealer_id_in
ORDER BY customer_name;
RETURN v_rfc;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN v_rfc;
END customer_details;
I am using the .NET Framework data provider for Oracle
and can't get anything to work when using Oracle
Functions. Couple of quesitons: 1) Do I have to declare
the output as REF CURSOR? If I don't then the error says
there is no store proc with this name? If I do, then I
always get the same error about "invalid argument or type
for input params..".
ANY HELP??
FUNCTION customer_details(dealer_id_in config.ids)
RETURN config.GenRfcTyp
IS
v_rfc config.GenRfcTyp;
BEGIN
OPEN v_rfc FOR
SELECT DISTINCT customer_id uc_id,
customer.name(customer_id)
customer_name
FROM dealer_customers
WHERE dealer_id = dealer_id_in
ORDER BY customer_name;
RETURN v_rfc;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN v_rfc;
END customer_details;