Minor JDBC Connector bug fix.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 21 Aug 2003 20:34:30 +0000 (20:34 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 21 Aug 2003 20:34:30 +0000 (20:34 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@736 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/provider/JDBCDataConnector.java

index 565de11..da313f2 100644 (file)
@@ -679,13 +679,14 @@ class DependencyStatementCreator implements JDBCStatementCreator {
                                        throw new JDBCStatementCreatorException("Cannot parameterize prepared statement: missing dependency value.");
                                }
 
-                               if (attribute.size() < 1) {
+                               if (attribute.size() > 1) {
                                        log.error("Statement Creator encountered a multivalued dependent attribute.");
                                        throw new JDBCStatementCreatorException("Statement Creator encountered a multivalued dependent attribute.");
                                }
 
                                try {
                                        setSpecificParameter(preparedStatement, valueIndex, attribute.get());
+                                       return;
                                } catch (NamingException e) {
                                        log.error(
                                                "Statement Creator encountered an error while extracting attributes from a Data Conector: "