cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pal Wester <pal.wester.l...@florence.never.no>
Subject SV: ESQL and missing values
Date Fri, 09 Feb 2001 19:06:14 GMT
> -----Opprinnelig melding-----
> Fra: Donald Ball [mailto:balld@webslingerZ.com]
> Sendt: 9. februar 2001 19:50
> Til: cocoon-users@xml.apache.org
> Emne: Re: ESQL and missing values
>
>
> On Fri, 9 Feb 2001, Peter Wuebbelt wrote:
>
> > I've got a few problems using esql when I retrieve null-values from my
> > Oracle database. I would like to use "get-int" but in case of null
> > values in the database the value "0" is returned. Any chance to avoid
> > or modify this behaviour ?
>
> what would you prefer to happen in this case? i've been considering adding
> an esql:is-null element so you can query a column's nullness before you
> try to access it, but esql:get-int really doesn't have any alternative
> than to return 0 or some other magic number. i guess that number could be
> configurable...?
>
> - donald
>

What about java.lang.Integer.MIN_VALUE, hardly
ever used....

And one other thing... How about adding
a <esql:insert-ok/> and <esql:delete-ok/> ??

mvh:
Pal Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
tlf: 22 01 66 20, fax: 22 01 66 21
direkte: 22 01 66 34, 906 900 62
http://never.no - icq:103476059



Mime
View raw message