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:[EMAIL PROTECTED]] 
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to