Click here to Skip to main content
11,429,382 members (69,033 online)
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

Read clob from oracle

, 6 Jan 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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;

License

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

Share

About the Author

Alex Furmanski
Web Developer
United Kingdom United Kingdom
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150428.2 | Last Updated 6 Jan 2011
Article Copyright 2011 by Alex Furmanski
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid