cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@rennes.jouve.fr>
Subject [ESQL] bug when retrieving a null CLOB ?
Date Wed, 07 Jan 2004 13:34:11 GMT
Hi Cocooners !

In the EsqlHelper class / getAscii method, no test is done against the null value when 
getting a CLOB :

...
   Clob dbClob = set.getClob(column);
   int length = (int) dbClob.length();
...

So when using <esql:get-string> to retrieve a possible <null> value, a 
CascadingRuntimeException is thrown, even if a @null attribute is set...

Do I miss something or do you want a patch ?

Thanks,

-- 
Olivier BILLARD



Mime
View raw message