Andy Conn 2016-06-24 23:49:25 -04:00
parent 62a8e4efaa
commit 4b6f146344
1 changed files with 5 additions and 0 deletions

View File

@ -288,7 +288,12 @@ public class ADLookup {
log.log(Level.SEVERE, m_columnName + " (TableDir) - no standard/identifier columns");
return "";
}
//
// Enclose "OR'd" identifier lookup clause to not boolean corrupt additionally appended "AND" clauses
sql.insert(0,"(");
sql.append(") ");
StringBuffer retValue = new StringBuffer ("SELECT ")
.append(m_columnName).append(" FROM ").append(m_tableName)
.append(" WHERE ").append(sql)