cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SÚrgio Carvalho <sergio.carva...@acm.org>
Subject [patch] esql null column handling
Date Sun, 13 May 2001 10:27:25 GMT
Hi,

Here's a patch to allow null-value handling using the esql logicsheet. It introduces three
elements to the esql namespace:
 * <esql:when-null>
 * <esql:when-null-true>
 * <esql:when-null-false>
and is used like this:

...
 <esql:row-results>
 ...
  <esql:when-null column="foo">
   <esql:when-null-true>
    ...
   </esql:when-null-true>
   <esql:when-null-false>
    ...
   </esql:when-null-false>
  </esql:when-null>

It uses the wasNull resultset method, which requires getting the column first (this is handled
by the logicsheet). This additional get may cause trouble with some (very old) JDBC drivers,
which allow only sequential column gets. This element is unusable in those cases...

The patch was created with cvs -kk -u.

Cheers,

Sergio




 
  


Mime
View raw message