You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Mikael Söderman <mi...@excito.se> on 2002/03/25 20:02:38 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>