cancel
Showing results for 
Search instead for 
Did you mean: 

Clob to String in Groovy

New Contributor

Clob to String in Groovy

Hi,

I am trying to convert a clob from the database into a String so that I can assert against what was passed in. 

I am struggling trying to get this in to convert in Groovy.  Any ideas how I could accomplish this?

Thanks
2 REPLIES 2
Highlighted
Super Contributor

Re: Clob to String in Groovy

Hi!

Hmm.. how are you getting the CLOB? Can you show the SQL query?

regards!

/Ole
eviware.com
Highlighted
New Contributor

Re: Clob to String in Groovy

I am getting the value with a simple query
SELECT LETTER FROM LETTER WHERE ID = '12345'

It is grabbing the Clob object.  I can do a count on this object and it returns the correct number associated with the stored text length.
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors