Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Checking if a record type variable is null is failing with code 00306

779550Jul 11 2011 — edited Jul 11 2011
Hi,

I have a Type Record Type

Type rt_my_type is Record (

field1 varchar(20),

field2 varchar(25));

I have a table type

Type tt_my_table IS TABLE OF rt_my_type ;


In my procedure I have two variables of each type


var_coll tt_my_type;

var_rt rt_my_type;

I have a code segment

IF var_rt IS NULL
var_rt := var_coll(0);
END IF;

While compiling I get the error. wrong number or type of arguments in call to 'IS NULL'.

If I comment out my if check it compiles fine. Can somebody help please?

Thanks
Paddy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2011
Added on Jul 11 2011
4 comments
3,165 views