473,508 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PL/SQL Function Help

The following function worked in 8i(8.1.7.4) but will not compile in
9i(9.2.0.3). This is a stripped down version with just the error
parts. I am really new at PL/SQL can someone help me out.

Thanks
Larry

CREATE OR REPLACE FUNCTION did_close_test( v2_msg_io IN OUT VARCHAR2,
rt_pa_i IN s2_person_action%ROWTYPE )
RETURN PLS_INTEGER

IS
B_TRUE BOOLEAN := TRUE;
b_moa_ok BOOLEAN := FALSE;
n_rc PLS_INTEGER := 0;

CURSOR c_mon IS
SELECT B_TRUE
FROM s2_action_monitor
WHERE moa_received_date IS NOT NULL
AND moa_signed_date IS NOT NULL
AND person_action_key = rt_pa_i.process_person_action_key;

BEGIN

OPEN c_mon;
FETCH c_mon INTO b_moa_ok;
CLOSE c_mon;

RETURN n_rc;

END did_close_test;
/
Jul 19 '05 #1
1 2844

Exactly, like 'Nobody' says, loose the 'BOOLEAN's

Also, you may not need a cursor:

CREATE OR REPLACE FUNCTION did_close_test( v2_msg_io IN OUT VARCHAR2,

rt_pa_i IN s2_person_action%ROWTYPE )

RETURN PLS_INTEGER

IS

B_TRUE CHAR(1) := '1';

b_moa_ok CHAR(1) := '0';

n_rc PLS_INTEGER := 0;

BEGIN

SELECT B_TRUE

INTO b_moa_ok

FROM s2_action_monitor

WHERE moa_received_date IS NOT NULL

AND moa_signed_date IS NOT NULL

AND person_action_key = rt_pa_i.process_person_action_key;

b_moa_ok:=NVL(b_moa_ok,'0');

RETURN n_rc;

END did_close_test;

/

;)
--
Posted via http://dbforums.com
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2652
by: Edward King | last post by:
Hi! I am trying to achieve the following: I have a number of help pages (in the format help_nn.php where nn=helpid). I want to be able to open a particular help page by calling the function...
4
1678
by: Joneseyboy | last post by:
Hi, I'm new to this so I could really do with some help! I am using VB.net to create a small game. basically there is a Textbox, a button and a listbox. The user enters a number into the...
2
9776
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton...
1
7992
by: intl04 | last post by:
I'm trying to set up a query that will include a new field ('Days until completion') whose value is derived from the DateDiff function. I think I have the syntax correct but am not sure. Days...
7
5156
by: Mike D. | last post by:
I have a problem with a dynamic library I am developing, but it is really more of a pointer issue than anything else. Hopefully someone here can lend me some assistance or insight into resolving...
4
3498
by: George Durzi | last post by:
I created a simple user control which contains a hyperlink to link the user to a topic in a compiled help file. I named all my help topics to have the same name as the aspx they are for. So in...
7
5099
by: Jimakos Bilakis | last post by:
Hi guys! I'm using the C++ Builder 6 Enterprise Edition where I create some tables in Paradox and with the help of a structure i pass my data from the form (Edit boxes) to the Paradox table with...
10
4968
by: David Fort | last post by:
Hi, I'm upgrading a VB6 app to VB.net and I'm having a problem with a call to a function provided in a DLL. The function takes the address of a structure which it will fill in with values. I...
2
5300
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
1
6448
by: Beamor | last post by:
function art_menu_xml_parcer($content, $showSubMenus) { $doc = new DOMDocument(); $doc->loadXML($content);//this is the line in question $parent = $doc->documentElement; $elements =...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.