Click here to Skip to main content
15,883,606 members
Articles / Programming Languages / C# 4.0
Alternative
Tip/Trick

Read clob from oracle

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
6 Jan 2011CPOL 8.9K   1  
You should watch out for cases where the return value could be null otherwise you'll get an exception, and your call to ToString is redundant.OracleClob clob = Params[3].Value as OracleClob;if (clob.IsNull) errorCode = null;else errorCode = clob.Value;
You should watch out for cases where the return value could be null otherwise you'll get an exception, and your call to ToString is redundant.

C#
OracleClob clob = Params[3].Value as OracleClob;
if (clob.IsNull)
   errorCode = null;
else
   errorCode = clob.Value;

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --