65.9K
CodeProject is changing. Read more.
Home

Read clob from oracle

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Jan 6, 2011

CPOL
viewsIcon

9053

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.
OracleClob clob = Params[3].Value as OracleClob;
if (clob.IsNull)
   errorCode = null;
else
   errorCode = clob.Value;