Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2005, 12:33 PM
Registered User
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Indrajit.Pal
Default Reference to uninitialized composite

Hi All

I have a problem when executing a package demo.main bcos it access a object type. i get the error :ORA-06530: Reference to uninitialized composite.

The code is show below:

type emp_typ as object
 (
  a number,
  b varchar2(10),
  c date,
  member procedure to_upper
)
type body emp_tpe is
  member procedure to_upper is
  begin
    b := upper(b);
  end;
end;
package demo
is
emp emp_typ;
procedure tst_pro (emp in emp_typ);
procedure main;
end demo;
type body emp_typ is
  member procedure to_upper is
  begin
   a :=0;
    b := upper(b);
  end;
end;
package body demo
is
procedure tst_pro(emp in emp_typ)
 is
 begin
     dbms_output.put_line ('The object varaible value is :'||emp.a||' '||emp.b||' '||emp.c);
         --insert into test (emp_id) values (var1);
 end tst_pro;
procedure main
 is
 begin
         emp.a :=10;
         emp.b := 'Indrajit';
         emp.c :=sysdate;
         tst_pro(emp);
 end main;
end demo;


Can anybody help me out to get rid of this error. i dnt know what is going wrong in my code.


Thanks...................




Regds ,
Indrajit Pal
 
Old December 21st, 2005, 08:04 AM
Registered User
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Indrajit.Pal
Default

Can anybody look into this issue and reply me on the problem i am facing

Regds ,
Indrajit Pal
 
Old March 10th, 2008, 09:25 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey,

I am facing the same prob with my procedure.
I am using an object with varrays. It gives me the same error.
ORA-06530: Reference to uninitialized composite

Anyways u cud try using this. Its jus a guess. Mite help !

emp emp_typ = emp_type();

Jus try...
All the best...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Composite Controls origjones General .NET 2 August 31st, 2006 09:58 AM
Composite indexes Fysicus SQL Language 1 June 28th, 2006 11:05 PM
PLEASE HELP - Composite Control brettk_1 ASP.NET 1.0 and 1.1 Professional 0 August 3rd, 2005 06:22 AM
javascript clientID reference in composite control arjeno ASP.NET 1.0 and 1.1 Professional 1 June 4th, 2003 02:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.