[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-user
Subject:    RE: Bug in JDBCDescriptorsStore?
From:       "GARTRELL,MIKE (HP-Corvallis,ex1)" <mike_gartrell () hp ! com>
Date:       2002-03-25 23:25:16
[Download RAW message or body]

	This definitely appears to be a bug.  This problem is also present
in the J2EEDescriptorsStore.  Any comment from the Slide developers?

-----Original Message-----
From: Mikael Söderman [mailto:mikael@excito.se] 
Sent: Monday, March 25, 2002 11:03 AM
To: Slide Users Mailing List
Subject: Bug in JDBCDescriptorsStore?


Hi!

I am new to Slide and have been looking at the jdbc store and have a
question regarding the implementation.

The code inserted below (from the method retrieveObject in the class
JDBCDescriptorsStore) retrieves inbound links. Is it really correct to fetch
LINKS_LINKTO from the result set? Shouldn't it rather be LINKS_LINK? If I am
wrong, please explain why.


statement = connection.prepareStatement
                ("select * from links where linkto= ?");
statement.setString(1,uri.toString());
res = statement.executeQuery();

Vector linksVector = new Vector();

// Parse result set
while (res.next()) {
    // Load each permission
    linksVector.addElement(res.getString(LINKS_LINKTO));
}

closeStatement(statement);


Best regards!

Mikael Söderman




--
To unsubscribe, e-mail:   <mailto:slide-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:slide-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic