[jdom-interest] ResultSetBuilder bug?

Jason Hunter jhunter at servlets.com
Mon Sep 30 19:18:06 PDT 2002


Thanks for the note.  I'll fix things up.

As for the class going into the core, what are people's opinions?

-jh-

Christopher Pereda wrote:
> 
> Hi, I wanted to set a column in a ResultSet as a attribute but whenever I
> specified a new name for the attribute it made the column a element and not a
> attribute. This happens in both setAsAttribute(int, String) and
> setAsAttribute(String, String).
> 
> I think the problem is in the build() function line #216
> if (!attribs.isEmpty() && isAttribute(name)) {
> 
> change to
> if (!attribs.isEmpty() && isAttribute(columnName[col-1])) {
> 
> and it works for me. BTW, anybody know when ResultSetBuilder is going to be in
> the main distro?
> 
> Chris
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list