Skip to Main Content

ODP.NET

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!

OraDataReader.GetString

238632Aug 2 2002
When you call the GetString method on a column containing a null value you get an exception, as stated in the documentation. You also get an exception when you call the GetOraString method. This is a pain, you have to call "IsDBNull(colindex)" before every read of every nullable string column!

Can I suggest you change GetOraString to return an empty (zero length) string for a null string value. If you make coding much simpler.

Regards

Chris

Comments

796440
At the very least, you need to read this and follow the advice it gives. That may or may not solve your problem, but it's a bare minimum.

http://www.javaworld.com/jw-12-2000/jw-1229-traps.html
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 30 2002
Added on Aug 2 2002
0 comments
230 views